Skip to content

Commit

Permalink
fix: use correct id
Browse files Browse the repository at this point in the history
  • Loading branch information
superskip committed Oct 18, 2023
1 parent 39cc34a commit 978303c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => {
Expand Down

0 comments on commit 978303c

Please sign in to comment.