From a82d3bf4b62254687462ad588a619440779ae61e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Gr=C3=B6ger?= Date: Thu, 5 Mar 2020 20:15:35 +0100 Subject: [PATCH] fixed ##214 --- src/components/user/Config.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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() {