adapt not input type (#1443)

* adapt not input type

* adapt not input type
This commit is contained in:
Archer 2024-05-10 22:27:32 +08:00 committed by GitHub
parent 26f4c92124
commit 8cf643d972
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -290,7 +290,11 @@ export const v1Workflow2V2 = (
const newInput: FlowNodeInputItemType = {
...input,
selectedTypeIndex: 0,
renderTypeList: inputTypeMap[input.type] ? [inputTypeMap[input.type]] : [],
renderTypeList: !input.type
? [FlowNodeInputTypeEnum.custom]
: inputTypeMap[input.type]
? [inputTypeMap[input.type]]
: [],
key: input.key,
value: input.value,