mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-03 13:19:16 -05:00
fixed toast error
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) {
|
if (err !== undefined && 'response' in err) {
|
||||||
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