Skip to content

Commit

Permalink
Remove error popup on the default apps/maps page.
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-wu committed Nov 20, 2024
1 parent 60f50d3 commit 495a885
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pages/apps/maps/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 495a885

Please sign in to comment.