Fix editor retrieving deck JSON

This commit is contained in:
Adam Goldsmith 2019-01-06 09:48:51 -05:00
parent d5c99ea5cf
commit b209dd4572

View File

@ -73,7 +73,7 @@
if (this.deckID !== 'new') { if (this.deckID !== 'new') {
fetch('/decks/' + this.deckID + '.json') fetch('/decks/' + this.deckID + '.json')
.then(r => r.json()) .then(r => r.json())
.then(j => this.deckInfo = j) .then(j => this.deckInfo = j.deck)
.catch((err) => console.log('did not get old JSON, starting new deck')); .catch((err) => console.log('did not get old JSON, starting new deck'));
} }