Browse Source

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

3.0.0/version-upgrade
Devosend 3 years ago committed by GitHub
parent
commit
3ca0986acf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      dolphinscheduler-ui-next/src/views/projects/task/components/node/format-data.ts

5
dolphinscheduler-ui-next/src/views/projects/task/components/node/format-data.ts

@ -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 }))

Loading…
Cancel
Save