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.
This commit is contained in:
jakob.scheid committed 2026-09-09 17:49:13 +02:00
1 parent 1b5db32c33
commit 1e26376ad4
1 file changed
+1 -2
+1 -2
View File
@@ -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 {
if (!setting) {
await router.push('/settings');
}
};