mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-04 13:48:32 -05:00
another toast fix
This commit is contained in:
@@ -126,7 +126,7 @@ export class StandardToasts {
|
|||||||
|
|
||||||
let DEBUG = localStorage.getItem("DEBUG") === "True" || false
|
let DEBUG = localStorage.getItem("DEBUG") === "True" || false
|
||||||
|
|
||||||
if (err !== undefined && 'response' in err) {
|
if (err !== undefined && 'response' in err && 'headers' in err.response) {
|
||||||
if (DEBUG && err.response.headers['content-type'] === 'application/json' && err.response.status < 500) {
|
if (DEBUG && err.response.headers['content-type'] === 'application/json' && err.response.status < 500) {
|
||||||
console.log('ERROR ', JSON.stringify(err.response.data))
|
console.log('ERROR ', JSON.stringify(err.response.data))
|
||||||
msg = context.$createElement('div', {}, [
|
msg = context.$createElement('div', {}, [
|
||||||
|
|||||||
Reference in New Issue
Block a user