From 4a87fec57cb92408b149b1cf378bf1362fd0998f Mon Sep 17 00:00:00 2001 From: David Featherston Date: Fri, 27 Dec 2024 09:32:53 +1100 Subject: [PATCH] fix(@dpc-sdp/ripple-tide-search): stop navigation when there's nothing to navigate to --- .../components/global/TideSearchStandaloneLocationBar.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/ripple-tide-search/components/global/TideSearchStandaloneLocationBar.vue b/packages/ripple-tide-search/components/global/TideSearchStandaloneLocationBar.vue index 251639f56..6f8f21c0e 100644 --- a/packages/ripple-tide-search/components/global/TideSearchStandaloneLocationBar.vue +++ b/packages/ripple-tide-search/components/global/TideSearchStandaloneLocationBar.vue @@ -55,6 +55,8 @@ const props = withDefaults(defineProps(), { }) const handleSelect = async (val: any) => { + if (!val) return + const locationParams = getScopedQueryParams('location', val) await navigateTo(