From 8ae9d1868f0fa9af495f32efd13adde3ea23eb98 Mon Sep 17 00:00:00 2001 From: Maja Komel Date: Mon, 20 Feb 2023 20:52:24 +0100 Subject: [PATCH] Return default value for getDatesBetween --- components/aggregation/mat/computations.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/aggregation/mat/computations.js b/components/aggregation/mat/computations.js index 9065be27d..1216caf9c 100644 --- a/components/aggregation/mat/computations.js +++ b/components/aggregation/mat/computations.js @@ -24,7 +24,7 @@ export function getDatesBetween(startDate, endDate, timeGrain) { const weekStart = dayjs(currentDate).utc().startOf('week') dateSet.add(weekStart.toISOString().slice(0, 10)) currentDate = weekStart.add(1, 'week').toDate() - } else if (timeGrain === 'day') { + } else { dateSet.add(currentDate.toISOString().slice(0, 10)) currentDate.setDate(currentDate.getDate() + 1) }