refactor code as remarked + add uuid to test deck
This commit is contained in:
parent
73604d9f14
commit
eb24802d37
2 changed files with 3 additions and 4 deletions
|
@ -1,7 +1,8 @@
|
||||||
{
|
{
|
||||||
"meta": {
|
"meta": {
|
||||||
"author": "Niko Lockenvitz & Rene-Pascal Fischer",
|
"author": "Niko Lockenvitz & Rene-Pascal Fischer",
|
||||||
"version": "1.1.1"
|
"version": "1.1.1",
|
||||||
|
"uuid": "6d4b5420-3c3e-42bc-addd-019597fd438b"
|
||||||
},
|
},
|
||||||
"decks": {
|
"decks": {
|
||||||
"d0": {
|
"d0": {
|
||||||
|
|
|
@ -87,9 +87,7 @@ export function addDecksFromJSON(
|
||||||
addedDecksAndCards.push({ name, numberOfCards: cards.length });
|
addedDecksAndCards.push({ name, numberOfCards: cards.length });
|
||||||
}
|
}
|
||||||
|
|
||||||
const version = fileContent.meta.version
|
const version = fileContent?.meta?.version;
|
||||||
? fileContent.meta.version
|
|
||||||
: undefined;
|
|
||||||
|
|
||||||
showAddedDecksConfirmation(
|
showAddedDecksConfirmation(
|
||||||
context,
|
context,
|
||||||
|
|
Loading…
Reference in a new issue