Fix editor retrieving deck JSON

This commit is contained in:
Adam Goldsmith 2019-01-06 09:48:51 -05:00
parent 9e16ea14ad
commit e9fd80dd66
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@
if (this.deckID !== 'new') {
fetch('/decks/' + this.deckID + '.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'));
}