Commit a0f6bf9d authored by Clement Ho's avatar Clement Ho

[skip ci] add catch to saveSelectedUsers

parent e8ee9565
......@@ -35,9 +35,14 @@ export default {
},
saveUsers() {
this.loading = true;
this.mediator.saveSelectedUsers(this.field).then(() => {
function setLoadingFalse() {
this.loading = false;
});
}
this.mediator.saveSelectedUsers(this.field)
.then(setLoadingFalse)
.catch(setLoadingFalse);
},
},
created() {
......
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