added global field changes
This commit is contained in:
parent
57421ff905
commit
57bf600667
@ -733,6 +733,17 @@ export function DynamicForm({ client, activityId: initialActivityId, instanceId:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Object.keys(payload).forEach(key => {
|
||||||
|
if (Array.isArray(payload[key])) {
|
||||||
|
payload[key] = (payload[key] as any[]).map(row => {
|
||||||
|
if (row && typeof row === 'object' && row.bags !== undefined) {
|
||||||
|
row.bags_3 = row.bags;
|
||||||
|
}
|
||||||
|
return row;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
let res;
|
let res;
|
||||||
if (currentInstanceId != null) {
|
if (currentInstanceId != null) {
|
||||||
res = await client.performActivity(currentInstanceId, currentActivityId, payload);
|
res = await client.performActivity(currentInstanceId, currentActivityId, payload);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user