diff --git a/packages/builder/src/pages/builder/app/[application]/design/screens/_components/ScreenNavigationPanel.svelte b/packages/builder/src/pages/builder/app/[application]/design/screens/_components/ScreenNavigationPanel.svelte index e172012bdd..babaea427a 100644 --- a/packages/builder/src/pages/builder/app/[application]/design/screens/_components/ScreenNavigationPanel.svelte +++ b/packages/builder/src/pages/builder/app/[application]/design/screens/_components/ScreenNavigationPanel.svelte @@ -28,8 +28,8 @@ .slice() .sort((a, b) => { // Sort by role first - const roleA = RolePriorities[a.routing.roleId] - const roleB = RolePriorities[b.routing.roleId] + const roleA = RolePriorities[a.routing.roleId] ?? 0 + const roleB = RolePriorities[b.routing.roleId] ?? 0 if (roleA !== roleB) { return roleA > roleB ? -1 : 1 }