Skip to content

Commit d65fca8

Browse files
committed
fix(app): only navigate to treeitems with routePath
1 parent b82cf7a commit d65fca8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/app/src/composables/useTree.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,12 @@ export const useTree = (type: StudioFeature, host: StudioHost, draft: ReturnType
5959
!preferences.value.syncEditorAndRoute
6060
|| type === StudioFeature.Media
6161
|| item.name === '.navigation'
62+
|| item.routePath === undefined
6263
) {
6364
return
6465
}
6566

66-
host.app.navigateTo(item.routePath!)
67+
host.app.navigateTo(item.routePath)
6768
}
6869
else {
6970
draft.unselect()

0 commit comments

Comments
 (0)