diff --git a/packages/builder/src/pages/builder/app/[application]/design/_components/NewScreen/CreateScreenModal.svelte b/packages/builder/src/pages/builder/app/[application]/design/_components/NewScreen/CreateScreenModal.svelte index ad4fd6e0ac..cc4415ce2c 100644 --- a/packages/builder/src/pages/builder/app/[application]/design/_components/NewScreen/CreateScreenModal.svelte +++ b/packages/builder/src/pages/builder/app/[application]/design/_components/NewScreen/CreateScreenModal.svelte @@ -58,13 +58,12 @@ const response = await store.actions.screens.save(screen) screenId = response._id - // Add link in layout for list screens - if (screen.props._instanceName.endsWith("List")) { - await store.actions.links.save( - screen.routing.route, - capitalise(screen.routing.route.split("/")[1]) - ) - } + // Add link in layout. We only ever actually create 1 screen now, even + // for autoscreens, so it's always safe to do this. + await store.actions.links.save( + screen.routing.route, + capitalise(screen.routing.route.split("/")[1]) + ) } // Go to new screen