diff --git a/frontend/src/lib/components/VariableEditor.svelte b/frontend/src/lib/components/VariableEditor.svelte
index 355aece019..e827bfbe67 100644
--- a/frontend/src/lib/components/VariableEditor.svelte
+++ b/frontend/src/lib/components/VariableEditor.svelte
@@ -361,7 +361,9 @@
{#snippet actions()}
- {#if edit && curWs}
+
+ {#if editPath !== undefined && curWs}
{/if}