Skip to content

Commit

Permalink
(feat) Pass default form session intent to form Engine (#2004)
Browse files Browse the repository at this point in the history
add default form session intent
  • Loading branch information
kajambiya authored Sep 9, 2024
1 parent 8576c54 commit 29bf5e9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const FormRenderer: React.FC<FormRendererProps> = ({
const { t } = useTranslation();
const { schema, error, isLoading } = useFormSchema(formUuid);
const openClinicalFormsWorkspaceOnFormClose = additionalProps?.openClinicalFormsWorkspaceOnFormClose ?? true;
const formSessionIntent = additionalProps?.formSessionIntent ?? '*';

const handleCloseForm = useCallback(() => {
closeWorkspace();
Expand Down Expand Up @@ -82,7 +83,7 @@ const FormRenderer: React.FC<FormRendererProps> = ({
handleConfirmQuestionDeletion={handleConfirmQuestionDeletion}
markFormAsDirty={handleMarkFormAsDirty}
mode={additionalProps?.mode}
formSessionIntent={additionalProps?.formSessionIntent}
formSessionIntent={formSessionIntent}
onSubmit={closeWorkspaceWithSavedChanges}
patientUUID={patientUuid}
visit={visit}
Expand Down

0 comments on commit 29bf5e9

Please sign in to comment.