Skip to content

Commit

Permalink
Merge pull request #234 from alan-wu/remove-fail-message
Browse files Browse the repository at this point in the history
Remove error popup on the default apps/maps page.
  • Loading branch information
alan-wu authored Nov 21, 2024
2 parents 60f50d3 + 495a885 commit 3bfe602
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 3bfe602

Please sign in to comment.