diff --git a/packages/builder/src/components/design/NavigationPanel/ComponentNavigationTree/PathTree.svelte b/packages/builder/src/components/design/NavigationPanel/ComponentNavigationTree/PathTree.svelte index 9a4b02a4f1..09e8948407 100644 --- a/packages/builder/src/components/design/NavigationPanel/ComponentNavigationTree/PathTree.svelte +++ b/packages/builder/src/components/design/NavigationPanel/ComponentNavigationTree/PathTree.svelte @@ -30,7 +30,8 @@ $: filteredScreens = getFilteredScreens(allScreens, $screenSearchString) $: hasSearchMatch = $screenSearchString && filteredScreens.length > 0 $: noSearchMatch = $screenSearchString && !filteredScreens.length - $: routeSelected = route.subpaths[selectedScreen.routing.route] !== undefined + $: routeSelected = + route.subpaths[selectedScreen?.routing?.route] !== undefined $: routeOpened = routeManuallyOpened || routeSelected || hasSearchMatch const changeScreen = screenId => {