File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ export default class Import extends Vue {
207207 }
208208
209209 private get hasAuthority (): boolean {
210- const auths = this .account .posting .account_auths .map (auth => auth [0 ])
210+ const auths = this .account ? .posting ? .account_auths ? .map (auth => auth [0 ]) || []
211211 return auths .includes (this .clientId )
212212 }
213213
Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ export default class Login extends Vue {
147147 }
148148
149149 private get hasAuthority (): boolean {
150- const auths = this .account .posting .account_auths .map (auth => auth [0 ])
150+ const auths = this .account ? .posting ? .account_auths ? .map (auth => auth [0 ]) || []
151151 return auths .includes (this .clientId )
152152 }
153153
You can’t perform that action at this time.
0 commit comments