fix: workflow plugin module default input value (#2257)
Some checks failed
Build FastGPT images in Personal warehouse / build-fastgpt-images (push) Has been cancelled

This commit is contained in:
heheer 2024-08-03 18:16:50 +08:00 committed by GitHub
parent 110bf9391f
commit 998e7833e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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