From 2d4ea80c9057823b0f3b22aea4ba093b4933dba5 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 18 Apr 2021 19:42:27 +0200 Subject: [PATCH] Fix current password id being available twice --- src/components/list/list-settings-dropdown.vue | 2 +- src/views/user/Settings.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/list/list-settings-dropdown.vue b/src/components/list/list-settings-dropdown.vue index 72af3814..090defb1 100644 --- a/src/components/list/list-settings-dropdown.vue +++ b/src/components/list/list-settings-dropdown.vue @@ -106,7 +106,7 @@ export default { listRoutePrefix() { let name = 'list' - if (this.$route.name.startsWith('list.')) { + if (this.$route.name !== null && this.$route.name.startsWith('list.')) { name = this.$route.name } diff --git a/src/views/user/Settings.vue b/src/views/user/Settings.vue index 874e5ef0..38d0e82d 100644 --- a/src/views/user/Settings.vue +++ b/src/views/user/Settings.vue @@ -67,12 +67,12 @@
- +