From a44dea64b8320b8db38269baa9b4b118fcc9b22a Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Sat, 23 Apr 2022 20:55:01 +0200 Subject: [PATCH] fixed toast error --- vue/src/utils/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vue/src/utils/utils.js b/vue/src/utils/utils.js index 5bfeb448c..a153a051a 100644 --- a/vue/src/utils/utils.js +++ b/vue/src/utils/utils.js @@ -126,7 +126,7 @@ export class StandardToasts { let DEBUG = localStorage.getItem("DEBUG") === "True" || false - if (err !== undefined) { + if (err !== undefined && 'response' in err) { if (DEBUG && err.response.headers['content-type'] === 'application/json' && err.response.status < 500) { console.log('ERROR ', JSON.stringify(err.response.data)) msg = context.$createElement('div', {}, [