@lightdash/common 0.1407.1 → 0.1407.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -146,7 +146,7 @@ const getMetricExplorerDataPointsWithCompare = (dimension, compareDimension, met
|
|
146
146
|
const groupByCompareMetricRows = (0, lodash_1.groupBy)(compareMetricRows, (row) => new Date(String(row[compareDimensionId].value.raw)).toISOString());
|
147
147
|
const offsetGroupByCompareMetricRows = (0, lodash_1.mapKeys)(groupByCompareMetricRows, (_, date) => comparison.type === metricsExplorer_1.MetricExplorerComparison.PREVIOUS_PERIOD
|
148
148
|
? (0, exports.getDateCalcUtils)(timeFrames_1.TimeFrames.YEAR)
|
149
|
-
.
|
149
|
+
.forward(new Date(date))
|
150
150
|
.toISOString()
|
151
151
|
: date);
|
152
152
|
const dates = new Set([
|