We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ea6b3c commit 948631fCopy full SHA for 948631f
src/components/FlashMessage.vue
@@ -18,7 +18,7 @@ export default {
18
default: null,
19
},
20
error: {
21
- type: [Object, String],
+ type: [Error, String],
22
23
24
src/utils/helpers.js
@@ -1,4 +1,4 @@
1
export const getError = (error) => {
2
console.debug({ error });
3
- return error.data.errors ? error.data.errors : error;
+ return error.data && error.data.errors ? error.data.errors : error;
4
};
0 commit comments