Resolve #120: Fix bug where default decks were not correctly added.

This commit is contained in:
Gareth Latty
2020-05-30 17:35:02 +01:00
parent a8cd92fec7
commit ba1435f5c2
2 changed files with 17 additions and 1 deletions
+14
View File
@@ -83,9 +83,23 @@
audienceMode: false,
decks: [
// {
// // A built-in deck.
// source: "BuiltIn",
// // The id (filename without `.deck.json5`.
// id: "cah-base-en",
// },
// {
// // A deck from JSON Against Humanity
// source: "JAH",
// // The id can be found in the JSON as the key for the deck.
// id: "Base",
// },
// {
// // A deck from Many Decks
// source: "ManyDecks",
// // The deck code, as given on Many Decks.
// deckCode: "ABCDE",
// },
],
},
+3 -1
View File
@@ -92,7 +92,9 @@ export const fromDefaults = (
rules: Rules.fromDefaults(defaults.rules),
public: defaults.public,
audienceMode: defaults.audienceMode,
decks: [],
decks: defaults.decks.map((d) => ({
source: d,
})),
},
tasks: tasks,
};