Skip to content

Commit cacd8d9

Browse files
author
Gareth Redfern
committed
add check for error type being a string, errorKeys
1 parent b018105 commit cacd8d9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/FlashMessage.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ export default {
4444
},
4545
computed: {
4646
errorKeys() {
47-
if (!this.error) return null;
47+
if (!this.error || this.getType(this.error) === "string") {
48+
return null;
49+
}
4850
return Object.keys(this.error);
4951
},
5052
},

0 commit comments

Comments
 (0)