Skip to content

Commit

Permalink
fix: [DHIS2-17859] Add missing ids to Enrollment plugin (#3748)
Browse files Browse the repository at this point in the history
  • Loading branch information
eirikhaugstulen committed Aug 8, 2024
1 parent e3acab8 commit 19c77ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,13 @@ const renderComponent = (
);
};

const getPropsForPlugin = ({ program, enrollmentId, teiId, orgUnitId }) => ({
const getPropsForPlugin = ({ program, enrollmentId, teiId, orgUnitId, programStage, eventId, stageId }) => ({
programId: program.id,
enrollmentId,
teiId,
orgUnitId,
programStageId: stageId ?? programStage?.id,
eventId,
});

const renderPlugin = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ type EnrollmentPluginProps = {|
teiId: string,
orgUnitId: string,
pluginSource: string,
programStageId?: string,
eventId?: string,
|};

export const EnrollmentPlugin = ({ pluginSource, ...passOnProps }: EnrollmentPluginProps) => {
Expand Down

0 comments on commit 19c77ec

Please sign in to comment.