console.log(route)} /> {#each Object.keys(route.subpaths) as subpath} {#each Object.keys(route.subpaths[subpath].screens) as screen} changeScreen(route.subpaths[subpath].screens[screen])}> {#if selectedScreen?._id === route.subpaths[subpath].screens[screen]} {/if} {/each} {/each}