Commit 93b8f070 authored by BojanSovticEngIT's avatar BojanSovticEngIT
Browse files

Possible bugfix KNOWAGE-7105

parent d6c76014
......@@ -283,7 +283,7 @@ export default defineComponent({
async created() {
this.uniqueID = crypto.randomBytes(16).toString('hex')
this.user = (this.$store.state as any).user
this.userRole = this.user.sessionRole !== 'No default role selected' ? this.user.sessionRole : null
this.userRole = this.user.sessionRole && this.user.sessionRole !== 'No default role selected' ? this.user.sessionRole : null
await this.loadPage()
},
methods: {
......
Supports Markdown
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