From 978303c5ff85dec774b97e7811d6ea16fa2936f3 Mon Sep 17 00:00:00 2001 From: Tony Valle Date: Wed, 18 Oct 2023 14:00:08 +0200 Subject: [PATCH] fix: use correct id --- .../TeiRegistrationEntry/TeiRegistrationEntry.component.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core_modules/capture-core/components/DataEntries/TeiRegistrationEntry/TeiRegistrationEntry.component.js b/src/core_modules/capture-core/components/DataEntries/TeiRegistrationEntry/TeiRegistrationEntry.component.js index 9a1674bd2e..95c8ba6886 100644 --- a/src/core_modules/capture-core/components/DataEntries/TeiRegistrationEntry/TeiRegistrationEntry.component.js +++ b/src/core_modules/capture-core/components/DataEntries/TeiRegistrationEntry/TeiRegistrationEntry.component.js @@ -56,7 +56,7 @@ const TeiRegistrationEntryPlain = const { scopeType } = useScopeInfo(selectedScopeId); const { formId, formFoundation } = useMetadataForRegistrationForm({ selectedScopeId }); const orgUnitId = useCurrentOrgUnitId(); - const { orgUnit } = useReduxOrgUnit(id); // [DHIS2-15814] Change this to new hook + const { orgUnit } = useReduxOrgUnit(orgUnitId); // Tony: [DHIS2-15814] Change this to new hook const orgUnitName = orgUnit ? orgUnit.name : ''; const handleOnCancel = () => {