fix: data watcher not firing immediately and not disabling loading status in student editor

This commit is contained in:
2025-11-03 12:28:32 +01:00
parent 6bf5900533
commit 5b883d2173

View File

@@ -40,10 +40,10 @@ watch(data, (newData) => {
form.value.student_data.study_field = newData.student_data!.study_field;
form.value.student_data.personal_email = newData.student_data!.personal_email;
form.value.student_data.address = newData.student_data!.address;
}
navigateTo('/dashboard/admin/students');
});
loading.value = false;
}
}, { immediate: true });
// Uloženie zmien
async function saveChanges() {