[Fix][UI Next][V1.0.0-Alpha] Fix worklfow localParams null error (#9190)

This commit is contained in:
Devosend 2022-03-25 17:09:26 +08:00 committed by GitHub
parent c6e0882113
commit 3ca0986acf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -321,7 +321,10 @@ export function formatParams(data: INodeData): {
taskGroupId: data.taskGroupId,
taskGroupPriority: data.taskGroupPriority,
taskParams: {
localParams: data.localParams,
localParams: data.localParams?.map((item: any) => {
item.value = item.value || ''
return item
}),
rawScript: data.rawScript,
resourceList: data.resourceList?.length
? data.resourceList.map((id: number) => ({ id }))