Fix(settings): fix settings view refreshing #191

Merged
jakob.scheid merged 1 commits from fix/settings-view-refresh into release/0.1.0 2026-09-09 17:54:48 +02:00
+2 -3
View File
@@ -38,9 +38,8 @@ const activePath = computed(() => {
const activeSection = ref(null); const activeSection = ref(null);
const updateSettings = async function updateSettings() { const updateSettings = async function updateSettings() {
const setting = getSettingRecursively(activePath.value, settings); const setting = getSettingRecursively(activePath.value, settings);
if (setting) { activeSection.value = setting;
activeSection.value = setting; if (!setting) {
} else {
await router.push('/settings'); await router.push('/settings');
} }
}; };