diff --git a/src/components/cards/CardsOverview.svelte b/src/components/cards/CardsOverview.svelte index 2463b772..999b95b5 100644 --- a/src/components/cards/CardsOverview.svelte +++ b/src/components/cards/CardsOverview.svelte @@ -206,9 +206,21 @@ on:click={async () => { const prom = []; for (const card of selectedCards) { - prom.push(deleteCard(card.id)); + prom.push( + await RunnerCardService.runnerCardControllerRemove( + card.id, + true + ) + ); } 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")}