Commit 868ccd00 authored by Justin Ho's avatar Justin Ho

Use error message from response if available

parent 17d96b2c
......@@ -68,9 +68,9 @@ export default {
.then(() => {
reloadPage();
})
.catch(() => {
.catch((error) => {
this.setAlert({
message: this.$options.i18n.unlinkError,
message: error?.response?.data?.error || this.$options.i18n.unlinkError,
variant: 'danger',
});
this.loadingItem = null;
......
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