Skip to content

Commit

Permalink
(fix) fix error on adding extra visit attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
donaldkibet committed Jun 5, 2024
1 parent dc7b090 commit 580727e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,9 @@ const StartVisitForm: React.FC<StartVisitFormProps> = ({

if (config.showExtraVisitAttributesSlot) {
const { handleCreateExtraVisitInfo, attributes } = extraVisitInfo ?? {};
if (!payload.attributes) {
payload.attributes = [];
}
payload.attributes.push(...attributes);
handleCreateExtraVisitInfo && handleCreateExtraVisitInfo();
}
Expand Down

0 comments on commit 580727e

Please sign in to comment.