From d14cfbb0abc2a80760da3cf4132a7cd01be0bfcc Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 26 Mar 2024 16:05:19 +0000 Subject: [PATCH] Don't show evaluation side panel when context exists but is empty --- .../builder/src/components/common/bindings/BindingPanel.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/builder/src/components/common/bindings/BindingPanel.svelte b/packages/builder/src/components/common/bindings/BindingPanel.svelte index 21d389357f..8c6c56aa99 100644 --- a/packages/builder/src/components/common/bindings/BindingPanel.svelte +++ b/packages/builder/src/components/common/bindings/BindingPanel.svelte @@ -131,7 +131,7 @@ if (bindings?.length) { options.push(SidePanels.Bindings) } - if (context) { + if (context && Object.keys(context).length > 0) { options.push(SidePanels.Evaluation) } if (useSnippets && mode === Modes.JavaScript) {