Fix editor retrieving deck JSON
This commit is contained in:
parent
d5c99ea5cf
commit
b209dd4572
@ -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'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user