From 288517df96688b04b57c51d71da1d00fb163e971 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Thu, 24 Oct 2024 16:08:04 +0200 Subject: [PATCH] Fix frontend issues due power role missing --- .../backend/DataTable/buttons/ManageAccessButton.svelte | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/builder/src/components/backend/DataTable/buttons/ManageAccessButton.svelte b/packages/builder/src/components/backend/DataTable/buttons/ManageAccessButton.svelte index 2826d8d986..17c26847b3 100644 --- a/packages/builder/src/components/backend/DataTable/buttons/ManageAccessButton.svelte +++ b/packages/builder/src/components/backend/DataTable/buttons/ManageAccessButton.svelte @@ -34,7 +34,9 @@ $: buttonLabel = readableRole ? `Access: ${readableRole}` : "Access" $: highlight = roleMismatch || selectedRole === Roles.PUBLIC - $: builtInRoles = builtins.map(roleId => $roles.find(x => x._id === roleId)) + $: builtInRoles = builtins + .map(roleId => $roles.find(x => x._id === roleId)) + .filter(r => !!r) $: customRoles = $roles .filter(x => !builtins.includes(x._id)) .slice()