fix(plugin-workflow-action-trigger): fix bulk edit action to trigger workflow (#6440)

This commit is contained in:
Junyi 2025-03-13 14:30:54 +08:00 committed by GitHub
parent d9d58e60de
commit 8670de9667
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -108,10 +108,13 @@ export const useCustomizeBulkEditActionProps = () => {
actionField.data = field.data || {};
actionField.data.loading = true;
try {
const updateData: { filter?: any; values: any; forceUpdate: boolean } = {
const updateData: { filter?: any; values: any; forceUpdate: boolean; triggerWorkflows?: string } = {
values: form.values,
filter,
forceUpdate: false,
triggerWorkflows: triggerWorkflows?.length
? triggerWorkflows.map((row) => [row.workflowKey, row.context].filter(Boolean).join('!')).join(',')
: undefined,
};
if (updateMode === 'selected') {
if (!selectedRecordKeys?.length) {