From b209dd4572717df75c5c350443df0bc909d4122d Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Sun, 6 Jan 2019 09:48:51 -0500 Subject: [PATCH] Fix editor retrieving deck JSON --- src/Editor.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Editor.vue b/src/Editor.vue index b4060df..b4a80c5 100644 --- a/src/Editor.vue +++ b/src/Editor.vue @@ -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')); }