Fixed killing of the dom
This commit is contained in:
		| @@ -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")} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user