Skip to content

Commit

Permalink
adapt not input type (#1443)
Browse files Browse the repository at this point in the history
* adapt not input type

* adapt not input type
  • Loading branch information
c121914yu authored May 10, 2024
1 parent 26f4c92 commit 8cf643d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion projects/app/src/web/core/workflow/adapt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8cf643d

Please sign in to comment.