Browse Source

Don't show a notification if there is no error message

pull/4434/head
Andrew Kingston 4 years ago
parent
commit
d3a4e34b3f
  1. 4
      packages/client/src/api.js

4
packages/client/src/api.js

@ -18,7 +18,9 @@ export const API = createAPIClient({
// We could also log these to sentry.
// Or we could check error.status and redirect to login on a 403 etc.
onError: error => {
notificationStore.actions.error(error.message)
if (error.message) {
notificationStore.actions.error(error.message)
}
},
// Patch certain endpoints with functionality specific to client apps

Loading…
Cancel
Save