diff --git a/src/routes/v2/pages/Editor/components/AiChat/toolBridge/csomBridge.ts b/src/routes/v2/pages/Editor/components/AiChat/toolBridge/csomBridge.ts index 542d3d9bf4..9be77c115c 100644 --- a/src/routes/v2/pages/Editor/components/AiChat/toolBridge/csomBridge.ts +++ b/src/routes/v2/pages/Editor/components/AiChat/toolBridge/csomBridge.ts @@ -23,9 +23,9 @@ import { deleteOutput, renameInput, renameOutput, - setInputDefaultValue, setInputDescription, setInputType, + setInputValue, setOutputDescription, } from "@/routes/v2/pages/Editor/store/actions/io.actions"; import { @@ -130,8 +130,7 @@ export function createCsomBridgeHandlers(deps: CsomBridgeDeps): CsomHandlers { if (type) setInputType(deps.undo, spec, input.$id, type); if (description) setInputDescription(deps.undo, spec, input.$id, description); - if (defaultValue) - setInputDefaultValue(deps.undo, spec, input.$id, defaultValue); + if (defaultValue) setInputValue(deps.undo, spec, input.$id, defaultValue); if (optional !== undefined) { deps.undo.withGroup("Set input optional", () => { input.setOptional(optional); diff --git a/src/routes/v2/pages/Editor/store/actions/io.actions.ts b/src/routes/v2/pages/Editor/store/actions/io.actions.ts index d15b7b488e..13e961105d 100644 --- a/src/routes/v2/pages/Editor/store/actions/io.actions.ts +++ b/src/routes/v2/pages/Editor/store/actions/io.actions.ts @@ -124,18 +124,6 @@ export function setInputType( }); } -export function setInputDefaultValue( - undo: UndoGroupable, - spec: ComponentSpec, - entityId: string, - defaultValue: string | undefined, -): void { - undo.withGroup("Set input default value", () => { - const input = spec.inputs.find((i) => i.$id === entityId); - input?.setDefaultValue(defaultValue); - }); -} - export function setInputValue( undo: UndoGroupable, spec: ComponentSpec, diff --git a/src/routes/v2/pages/Editor/store/actions/useIOActions.ts b/src/routes/v2/pages/Editor/store/actions/useIOActions.ts index 9cc755fe64..a33b062c65 100644 --- a/src/routes/v2/pages/Editor/store/actions/useIOActions.ts +++ b/src/routes/v2/pages/Editor/store/actions/useIOActions.ts @@ -11,7 +11,6 @@ import { deleteOutput, renameInput, renameOutput, - setInputDefaultValue, setInputDescription, setInputType, setInputValue, @@ -35,7 +34,6 @@ export function useIOActions() { deleteOutput(undo, spec, entityId, navigation.parentContext), setInputDescription: setInputDescription.bind(null, undo), setInputType: setInputType.bind(null, undo), - setInputDefaultValue: setInputDefaultValue.bind(null, undo), setInputValue: setInputValue.bind(null, undo), setOutputDescription: setOutputDescription.bind(null, undo), createConnectedIONode: createConnectedIONode.bind(null, undo),