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.
2 parents c26b173 + 3af9735 commit 8c54526Copy full SHA for 8c54526
generator/templates/Default/src/store/modules/Error.js
@@ -23,7 +23,7 @@ export default {
23
find: state => key => {
24
const error = state.errors.find(x => x.key === key);
25
26
- if (error) return error.message;
+ return error ? error.message : '';
27
},
28
hasError: state => !!state.errors.length,
29
first: state => {
0 commit comments