diff --git a/packages/builder/src/pages/builder/portal/manage/users/[userId].svelte b/packages/builder/src/pages/builder/portal/manage/users/[userId].svelte index a77f8a4872..686223ff39 100644 --- a/packages/builder/src/pages/builder/portal/manage/users/[userId].svelte +++ b/packages/builder/src/pages/builder/portal/manage/users/[userId].svelte @@ -188,6 +188,9 @@ async function fetchUser(userId) { let userPromise = users.get(userId) user = await userPromise + if (!user?._id) { + $goto("./") + } } async function toggleFlags(detail) {