diff --git a/frontend/src/lib/components/ScriptPicker.svelte b/frontend/src/lib/components/ScriptPicker.svelte
index d4d6dd617150b..1e27883337768 100644
--- a/frontend/src/lib/components/ScriptPicker.svelte
+++ b/frontend/src/lib/components/ScriptPicker.svelte
@@ -26,6 +26,7 @@
export let kinds: Script['kind'][] = ['script']
export let disabled = false
export let allowRefresh = false
+ export let allowEdit = true
let items: { value: string; label: string }[] = []
let drawerViewer: Drawer
@@ -126,14 +127,16 @@
{#if scriptPath !== undefined && scriptPath !== ''}
{#if itemKind == 'flow'}
-
+ {#if allowEdit}
+
+ {/if}