From da3f8b2907813d86b7a0dfdb363d802d186c6a88 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Sun, 22 Aug 2021 14:10:18 +0200 Subject: [PATCH] bugfix(editor): download json as plaintext to edit it Signed-off-by: Stefan Dej --- src/store/editor/actions.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/store/editor/actions.ts b/src/store/editor/actions.ts index 247f7582..ea3910f4 100644 --- a/src/store/editor/actions.ts +++ b/src/store/editor/actions.ts @@ -53,8 +53,9 @@ export const actions: ActionTree = { lastLoaded: lastLoaded, lastTimestamp: lastTimestamp }) - } - }).then(res => res.data) + }, + responseType: 'blob' + }).then(res => res.data.text()) .then(file => { commit('openFile', { filename: payload.filename,