From 0a057a8328df78cfdf2513b076ff83c4d43da068 Mon Sep 17 00:00:00 2001 From: Philipp Rich Date: Tue, 12 Mar 2024 15:05:52 +0400 Subject: [PATCH] fixed bug not receiving initial values --- components/InstitutionsList/InstitutionsList.jsx | 2 +- components/RecordForm/RecordForm.jsx | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/components/InstitutionsList/InstitutionsList.jsx b/components/InstitutionsList/InstitutionsList.jsx index 244264c..8238ea2 100644 --- a/components/InstitutionsList/InstitutionsList.jsx +++ b/components/InstitutionsList/InstitutionsList.jsx @@ -29,7 +29,7 @@ function InstitutionsList({ variant="grid" padding={isInstitutionOpen || 2} > - + {institutions.map((institution, index) => ( { try { - await getLatestRecord(); + const initialValues = await getLatestRecord(); + return initialValues; } catch (error) { setErrorState(error.stack); }