Don't show a notification if there is no error message
This commit is contained in:
parent
4be465cf5a
commit
617dd4c670
|
@ -18,7 +18,9 @@ export const API = createAPIClient({
|
||||||
// We could also log these to sentry.
|
// We could also log these to sentry.
|
||||||
// Or we could check error.status and redirect to login on a 403 etc.
|
// Or we could check error.status and redirect to login on a 403 etc.
|
||||||
onError: error => {
|
onError: error => {
|
||||||
notificationStore.actions.error(error.message)
|
if (error.message) {
|
||||||
|
notificationStore.actions.error(error.message)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
// Patch certain endpoints with functionality specific to client apps
|
// Patch certain endpoints with functionality specific to client apps
|
||||||
|
|
Loading…
Reference in New Issue