Add Card appends current cards

This commit is contained in:
2023-04-12 21:04:29 +02:00
parent 2f62c7ae89
commit 195d182cc9
4 changed files with 42 additions and 18 deletions

View File

@@ -31,6 +31,14 @@
export let editable = {};
export let original_data = {};
export let current_cards = [];
export const addCards = (cards) => {
console.log(cards)
current_cards = current_cards.concat(...cards);
options.update((options) => ({
...options,
data: current_cards,
}));
};
$: dataLoaded = false;
$: selected =