Commit 13db4f30 authored by Mike Greiling's avatar Mike Greiling

don't assume that res.data is an object

parent 7cfae68e
......@@ -128,7 +128,11 @@ export default {
})
.catch((res) => {
this.isSubmitting = false;
Flash(res.data.message || 'We can\'t find an issue that matches what you are looking for.');
let errorMessage = 'We can\'t find an issue that matches what you are looking for.';
if (res.data && res.data.message) {
errorMessage = res.data.message;
}
Flash(errorMessage);
});
}
},
......
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