fix: workflow plugin module default input value (#2257)

This commit is contained in:
heheer
2024-08-03 18:16:50 +08:00
committed by GitHub
parent 110bf9391f
commit 998e7833e8

View File

@@ -125,6 +125,7 @@ export const getAppChatConfig = ({
export const getOrInitModuleInputValue = (input: FlowNodeInputItemType) => { export const getOrInitModuleInputValue = (input: FlowNodeInputItemType) => {
if (input.value !== undefined || !input.valueType) return input.value; if (input.value !== undefined || !input.valueType) return input.value;
if (input.defaultValue !== undefined) return input.defaultValue;
const map: Record<string, any> = { const map: Record<string, any> = {
[WorkflowIOValueTypeEnum.boolean]: false, [WorkflowIOValueTypeEnum.boolean]: false,