diff --git a/frontend/src/lib/components/ItemPicker.svelte b/frontend/src/lib/components/ItemPicker.svelte
index 6d2e8f7f79..3fdecc7310 100644
--- a/frontend/src/lib/components/ItemPicker.svelte
+++ b/frontend/src/lib/components/ItemPicker.svelte
@@ -57,12 +57,13 @@
{#each new Array(6) as _}
{/each}
- {:else if filteredItems}
+ {:else if filteredItems?.length}
{#each filteredItems as obj}
-
{:else}
- {noItemMessage}
+
+ {@html noItemMessage}
+
{/if}
diff --git a/frontend/src/lib/components/apps/editor/settingsPanel/ComponentPanel.svelte b/frontend/src/lib/components/apps/editor/settingsPanel/ComponentPanel.svelte
index 8aba6660b7..9ccf8b7559 100644
--- a/frontend/src/lib/components/apps/editor/settingsPanel/ComponentPanel.svelte
+++ b/frontend/src/lib/components/apps/editor/settingsPanel/ComponentPanel.svelte
@@ -18,6 +18,7 @@
import InputsSpecsEditor from './InputsSpecsEditor.svelte'
import PickFlow from './PickFlow.svelte'
import gridHelp from 'svelte-grid/build/helper/index.mjs'
+ import PickInlineScript from './PickInlineScript.svelte'
export let component: AppComponent | undefined
@@ -70,6 +71,15 @@
{#if component.runnable && component['path'] === undefined && component['inlineScriptName'] === undefined}
Select a script or a flow to continue
+ ({summary}))}
+ on:pick={({ detail }) => {
+ if (component?.runnable) {
+ // @ts-ignore
+ component.inlineScriptName = detail.summary
+ }
+ }}
+ />
{
@@ -88,22 +98,6 @@
}}
/>
{/if}
-
- {#if component.runnable && component['path'] === undefined && component['inlineScriptName'] === undefined}
- {#each Object.keys($app.inlineScripts ?? {}) as inlineScriptName}
-
- {/each}
- {/if}
{/if}
{#if Object.values(component.inputs).length > 0}
diff --git a/frontend/src/lib/components/apps/editor/settingsPanel/PickInlineScript.svelte b/frontend/src/lib/components/apps/editor/settingsPanel/PickInlineScript.svelte
new file mode 100644
index 0000000000..4195edaa17
--- /dev/null
+++ b/frontend/src/lib/components/apps/editor/settingsPanel/PickInlineScript.svelte
@@ -0,0 +1,32 @@
+
+
+ {
+ dispatch('pick', { path, summary })
+ }}
+ itemName={'Script'}
+ extraField="summary"
+ noItemMessage={`There are no inline scripts.
+ Click 'Add script' on the left panel to create one.`}
+ {loadItems}
+/>
+
+