From 72a7abcce47aa13b3b6b920b216e37b2b73a5d85 Mon Sep 17 00:00:00 2001 From: Carolina Capetillo Date: Fri, 3 Nov 2023 13:45:32 -0700 Subject: [PATCH] fixed some formatting issues --- src/store/modules/images.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/store/modules/images.js b/src/store/modules/images.js index 2d93b7d8..ab1f88c9 100644 --- a/src/store/modules/images.js +++ b/src/store/modules/images.js @@ -343,6 +343,7 @@ const actions = { // Get site and user_id let url = null const site = rootState.site_config.selected_site + const filterparams = {} // Set the lastSiteRequested before the API call @@ -374,6 +375,7 @@ const actions = { let response = await axios(firstbody) response = response.data + // Empty response if (response.length === 0) { dispatch('display_placeholder_image') return @@ -396,7 +398,7 @@ const actions = { queryEnd = endDate.add(1, 'days') } else { // If the image was taken earlier than noon, set the start of query to noon yesterday - queryStart = noonDate.subtract(1, 'days') + queryStart = noonDate.add(-1, 'days') // and the end to noon today queryEnd = endDate