diff --git a/packages/builder/src/components/workflow/SetupPanel/ParamInputs/ModelSelector.svelte b/packages/builder/src/components/workflow/SetupPanel/ParamInputs/ModelSelector.svelte
index b600e87dc6..ac09a328c1 100644
--- a/packages/builder/src/components/workflow/SetupPanel/ParamInputs/ModelSelector.svelte
+++ b/packages/builder/src/components/workflow/SetupPanel/ParamInputs/ModelSelector.svelte
@@ -2,12 +2,19 @@
import { backendUiStore } from "builderStore"
export let value
- let modelId = value ? value._id : ""
- $: value = $backendUiStore.models.find(x => x._id === modelId)
+ $: modelId = value ? value._id : ""
+
+ function onChange(e) {
+ value = $backendUiStore.models.find(x => x._id === e.target.value)
+ }
-