diff --git a/src/components/user/Config.vue b/src/components/user/Config.vue index a5c9dbf..022b7d9 100644 --- a/src/components/user/Config.vue +++ b/src/components/user/Config.vue @@ -220,7 +220,11 @@ export default { return this.user.autoLock ? 'green' : 'red' }, computeStatus() { - return this.status.find(a => a.id == this.user.statusgroup).name + try { + return this.status.find(a => a.id == this.user.statusgroup).name + } catch (e) { + return null + } } }, created() {