fixed toast error

This commit is contained in:
vabene1111
2022-04-23 20:55:01 +02:00
parent 54af76e9cf
commit a44dea64b8

View File

@@ -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', {}, [