From 1e26376ad4b1e8403d9e4ce08cb0a6d05d7b4986 Mon Sep 17 00:00:00 2001 From: Jakob Scheid Date: Wed, 9 Sep 2026 17:49:13 +0200 Subject: [PATCH] fix(settings): refresh also on empty section path The active section (activeSection) is now set on every settings update, not just if a section is selected. --- src/features/settings/views/SettingsView.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/features/settings/views/SettingsView.vue b/src/features/settings/views/SettingsView.vue index c908426..c042eed 100644 --- a/src/features/settings/views/SettingsView.vue +++ b/src/features/settings/views/SettingsView.vue @@ -38,9 +38,8 @@ const activePath = computed(() => { const activeSection = ref(null); const updateSettings = async function updateSettings() { const setting = getSettingRecursively(activePath.value, settings); - if (setting) { - activeSection.value = setting; - } else { + activeSection.value = setting; + if (!setting) { await router.push('/settings'); } }; -- 2.47.3