From 29bf5e9f90ee81e7e1c6a93ebd3982d7080d0a8a Mon Sep 17 00:00:00 2001 From: Jovan Ssebaggala Date: Mon, 9 Sep 2024 10:51:50 +0300 Subject: [PATCH] (feat) Pass default form session intent to form Engine (#2004) add default form session intent --- .../src/form-renderer/form-renderer.component.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/esm-form-engine-app/src/form-renderer/form-renderer.component.tsx b/packages/esm-form-engine-app/src/form-renderer/form-renderer.component.tsx index 907472f674..e1e5419701 100644 --- a/packages/esm-form-engine-app/src/form-renderer/form-renderer.component.tsx +++ b/packages/esm-form-engine-app/src/form-renderer/form-renderer.component.tsx @@ -30,6 +30,7 @@ const FormRenderer: React.FC = ({ const { t } = useTranslation(); const { schema, error, isLoading } = useFormSchema(formUuid); const openClinicalFormsWorkspaceOnFormClose = additionalProps?.openClinicalFormsWorkspaceOnFormClose ?? true; + const formSessionIntent = additionalProps?.formSessionIntent ?? '*'; const handleCloseForm = useCallback(() => { closeWorkspace(); @@ -82,7 +83,7 @@ const FormRenderer: React.FC = ({ handleConfirmQuestionDeletion={handleConfirmQuestionDeletion} markFormAsDirty={handleMarkFormAsDirty} mode={additionalProps?.mode} - formSessionIntent={additionalProps?.formSessionIntent} + formSessionIntent={formSessionIntent} onSubmit={closeWorkspaceWithSavedChanges} patientUUID={patientUuid} visit={visit}