Fixed killing of the dom
This commit is contained in:
parent
f6c1fea17c
commit
2f62c7ae89
@ -206,9 +206,21 @@
|
|||||||
on:click={async () => {
|
on:click={async () => {
|
||||||
const prom = [];
|
const prom = [];
|
||||||
for (const card of selectedCards) {
|
for (const card of selectedCards) {
|
||||||
prom.push(deleteCard(card.id));
|
prom.push(
|
||||||
|
await RunnerCardService.runnerCardControllerRemove(
|
||||||
|
card.id,
|
||||||
|
true
|
||||||
|
)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
await Promise.all(prom);
|
await Promise.all(prom);
|
||||||
|
for (const card of selectedCards) {
|
||||||
|
current_cards = current_cards.filter((r) => r.id !== card.id);
|
||||||
|
}
|
||||||
|
options.update((options) => ({
|
||||||
|
...options,
|
||||||
|
data: current_cards,
|
||||||
|
}));
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{$_("delete-cards")}
|
{$_("delete-cards")}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user