Skip to content
Snippets Groups Projects
Commit 8738cd1e authored by Erik Borgeteien Hansen's avatar Erik Borgeteien Hansen
Browse files

null check

parent bc6668be
No related branches found
No related tags found
1 merge request!128Admin page guard
......@@ -58,6 +58,7 @@ export default {
},
created() {
this.communityID = this.$route.params.communityID;
if (!Array.isArray(this.$store.state.user.adminList)) return;
this.admin = this.$store.state.user.adminList.includes(
parseInt(this.communityID)
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment