fix: Improved bulk deletion by reducing refreshs (#6634)

Co-authored-by: David Schinkel <david@zollsoft.de>
Co-authored-by: Hayden <64056131+hay-kot@users.noreply.github.com>
This commit is contained in:
davidschinkel
2025-12-13 05:08:04 +01:00
committed by GitHub
parent 2f8625ac44
commit ab4559319e
9 changed files with 85 additions and 27 deletions

View File

@@ -465,9 +465,8 @@ export default defineNuxtComponent({
}
async function deleteSelected() {
for (const item of bulkDeleteTarget.value) {
await unitActions.deleteOne(item.id);
}
const ids = bulkDeleteTarget.value.map(item => item.id);
await unitActions.deleteMany(ids);
bulkDeleteTarget.value = [];
}