From fe16be040883d411d395884f42ae462711e60ce2 Mon Sep 17 00:00:00 2001 From: Wei Zhou Date: Wed, 7 Sep 2022 07:43:45 +0200 Subject: [PATCH] UI: fix bulk delete project with cleanup (#6708) --- ui/src/config/section/project.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/config/section/project.js b/ui/src/config/section/project.js index ee8f2359b9a..a9bfb954647 100644 --- a/ui/src/config/section/project.js +++ b/ui/src/config/section/project.js @@ -158,7 +158,7 @@ export default { }, groupAction: true, popup: true, - groupMap: (selection) => { return selection.map(x => { return { id: x } }) }, + groupMap: (selection, values) => { return selection.map(x => { return { id: x, cleanup: values.cleanup || null } }) }, args: (record, store) => { const fields = [] if (store.apis.deleteProject.params.filter(x => x.name === 'cleanup').length > 0) {