From f3518d7c69419db7199910e6b41cb8d06ee857d4 Mon Sep 17 00:00:00 2001 From: Faton Ramadani Date: Fri, 5 Jul 2024 13:09:47 +0200 Subject: [PATCH] fix(frontend): fix navbar navigation for not deployed apps (#4033) --- .../lib/components/apps/components/display/AppNavbarItem.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/lib/components/apps/components/display/AppNavbarItem.svelte b/frontend/src/lib/components/apps/components/display/AppNavbarItem.svelte index dea4ea1651..0dca9d79fc 100644 --- a/frontend/src/lib/components/apps/components/display/AppNavbarItem.svelte +++ b/frontend/src/lib/components/apps/components/display/AppNavbarItem.svelte @@ -65,7 +65,7 @@ $: !initialized && resolvedPath && initSelection() function getButtonProps(resolvedPath: string | undefined) { - if (resolvedPath?.includes(appPath)) { + if (appPath && resolvedPath?.includes(appPath)) { return { onClick: () => { output.result.set({ currentPath: resolvedPath ?? '' })