fix: Link documents with establishments

This commit is contained in:
N3WT DE COMPET
2025-06-01 07:54:33 +02:00
parent c161fa7e75
commit 2f6d30b85b
6 changed files with 89 additions and 30 deletions

View File

@ -78,10 +78,10 @@ export default function FilesGroupsManagement({
useEffect(() => {
if (selectedEstablishmentId) {
Promise.all([
fetchRegistrationSchoolFileMasters(),
fetchRegistrationSchoolFileMasters(selectedEstablishmentId),
fetchRegistrationFileGroups(selectedEstablishmentId),
fetchRegistrationSchoolFileTemplates(),
fetchRegistrationParentFileMasters(),
fetchRegistrationSchoolFileTemplates(selectedEstablishmentId),
fetchRegistrationParentFileMasters(selectedEstablishmentId),
])
.then(
([