From f22bc9b4d7ec33d3c0d93cc49657d45de30e8dc1 Mon Sep 17 00:00:00 2001 From: Steven Date: Thu, 7 Sep 2023 15:27:58 +1000 Subject: [PATCH] fix issue with 30D/5min not loading --- services/Data.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/Data.js b/services/Data.js index d0236c4d..71688646 100755 --- a/services/Data.js +++ b/services/Data.js @@ -2,7 +2,7 @@ import subDays from 'date-fns/subDays' import subYears from 'date-fns/subYears' import * as rangesJs from '~/constants/ranges.js' -import { INTERVAL_30MIN } from '~/constants/interval-filters.js' +import { INTERVAL_5MIN, INTERVAL_30MIN } from '~/constants/interval-filters.js' function getYearPaths(prepend, regionId, oneYearAgo) { const today = new Date() @@ -41,7 +41,7 @@ export default { break case rangesJs.RANGE_30D: - if (interval === INTERVAL_30MIN) { + if (interval === INTERVAL_5MIN || interval === INTERVAL_30MIN) { urls.push(`v3/stats/au${prepend}/${regionId}/power/30d.json`) } else { const thirtyDaysAgo = subDays(new Date(), 30)