We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b74d42 commit f8a04a2Copy full SHA for f8a04a2
1 file changed
src/lib/components/multiSelectTable.svelte
@@ -93,6 +93,11 @@
93
const deleted: string[] = [];
94
let firstError: Error | undefined;
95
96
+ // prevent infinite loop
97
+ if (batchSize !== undefined) {
98
+ batchSize = Math.max(1, Math.floor(Math.abs(batchSize)));
99
+ }
100
+
101
async function processBatch(batch: string[]) {
102
// build promises
103
const results = await Promise.allSettled(batch.map((id) => deleteFn(id)));
0 commit comments