diff --git a/packages/builder/src/builderStore/store/frontend.js b/packages/builder/src/builderStore/store/frontend.js
index 9c68bd814a..2275dca348 100644
--- a/packages/builder/src/builderStore/store/frontend.js
+++ b/packages/builder/src/builderStore/store/frontend.js
@@ -215,6 +215,7 @@ export const getFrontendStore = () => {
currentPage._screens = currentPage._screens.filter(
scr => scr._id !== screenToDelete._id
)
+
deletePromise = api.delete(
`/api/screens/${screenToDelete._id}/${screenToDelete._rev}`
)
diff --git a/packages/builder/src/components/userInterface/ComponentNavigationTree/PathTree.svelte b/packages/builder/src/components/userInterface/ComponentNavigationTree/PathTree.svelte
index 9283c7ec7a..fd27e341c3 100644
--- a/packages/builder/src/components/userInterface/ComponentNavigationTree/PathTree.svelte
+++ b/packages/builder/src/components/userInterface/ComponentNavigationTree/PathTree.svelte
@@ -27,22 +27,21 @@
icon="ri-route-line"
text={path}
opened={true}
- withArrow={route.subpaths}
- on:click={() => console.log(route)} />
+ withArrow={route.subpaths} />
-{#each Object.keys(route.subpaths) as subpath}
- {#each Object.keys(route.subpaths[subpath].screens) as screen}
+{#each Object.entries(route.subpaths) as [url, subpath]}
+ {#each Object.values(subpath.screens) as screenId}