Commit bb29b79c authored by Clement Ho's avatar Clement Ho

[skip ci] add flash error handling

parent 183b3103
/* global Flash */
import '~/flash';
export default class SidebarAssigneesStore { export default class SidebarAssigneesStore {
constructor(currentUserId, service, rootPath, editable) { constructor(currentUserId, service, rootPath, editable) {
this.currentUserId = currentUserId; this.currentUserId = currentUserId;
...@@ -51,10 +54,9 @@ export default class SidebarAssigneesStore { ...@@ -51,10 +54,9 @@ export default class SidebarAssigneesStore {
this.saved = true; this.saved = true;
this.loading = false; this.loading = false;
}).catch((err) => { }).catch(() => {
this.loading = false; this.loading = false;
// TODO: Add correct error handling return new Flash('An error occured while saving assignees', 'alert');
throw err;
}); });
} }
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment