From 8bbdebe050e7fe7dbcb1e35e338681596f687521 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Thu, 14 Mar 2024 16:40:35 +0000 Subject: [PATCH] Don't show live eval popovers for roles as they have always been broken in JS --- .../src/components/common/bindings/BindingSidePanel.svelte | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/builder/src/components/common/bindings/BindingSidePanel.svelte b/packages/builder/src/components/common/bindings/BindingSidePanel.svelte index f364b39ba9..6ef2d35a6c 100644 --- a/packages/builder/src/components/common/bindings/BindingSidePanel.svelte +++ b/packages/builder/src/components/common/bindings/BindingSidePanel.svelte @@ -75,6 +75,13 @@ if (!context || !binding.value || binding.value === "") { return } + + // Roles have always been broken for JS. We need to exclude them from + // showing a popover as it will show "Error while executing JS". + if (binding.category === "Role") { + return + } + stopHidingPopover() popoverAnchor = target hoverTarget = {