mirror of
https://github.com/labring/FastGPT.git
synced 2025-12-25 20:02:47 +00:00
fix: workflow plugin module default input value (#2257)
Some checks failed
Build FastGPT images in Personal warehouse / build-fastgpt-images (push) Has been cancelled
Some checks failed
Build FastGPT images in Personal warehouse / build-fastgpt-images (push) Has been cancelled
This commit is contained in:
parent
110bf9391f
commit
998e7833e8
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue