From 495a885436d53d8585527baece0f48109f55edfd Mon Sep 17 00:00:00 2001 From: alan-wu Date: Thu, 21 Nov 2024 12:57:41 +1300 Subject: [PATCH] Remove error popup on the default apps/maps page. --- pages/apps/maps/index.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pages/apps/maps/index.vue b/pages/apps/maps/index.vue index d4f59daa..2f36a918 100644 --- a/pages/apps/maps/index.vue +++ b/pages/apps/maps/index.vue @@ -300,8 +300,11 @@ const openViewWithQuery = async (router, route, $axios, sparcApi, algoliaIndex, } else if (route.query.type === 'wholebody') { startingMap = "WholeBody" } else { + //Only display the error if there is an invalid parameters + if (Object.keys(route.query).length > 0) { + failMessage = 'Invalid parameters were detected. Default parameters will now be used.' + } router.replace({ ...router.currentRoute, query: { type: 'ac' } }) - failMessage = 'Invalid parameters were detected. Default parameters will now be used.' } return [startingMap, organ_name, currentEntry, successMessage, failMessage, facets]