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 {
constructor(currentUserId, service, rootPath, editable) {
this.currentUserId = currentUserId;
......@@ -51,10 +54,9 @@ export default class SidebarAssigneesStore {
this.saved = true;
this.loading = false;
}).catch((err) => {
}).catch(() => {
this.loading = false;
// TODO: Add correct error handling
throw err;
return new Flash('An error occured while saving assignees', 'alert');
});
}
}
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