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:
1 file changed
+1
-2
@@ -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');
|
||||
}
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user