diff --git a/packages/esm-patient-conditions-app/src/conditions/conditions-form.component.tsx b/packages/esm-patient-conditions-app/src/conditions/conditions-form.component.tsx index 511f42badb..8e2b0877bf 100644 --- a/packages/esm-patient-conditions-app/src/conditions/conditions-form.component.tsx +++ b/packages/esm-patient-conditions-app/src/conditions/conditions-form.component.tsx @@ -15,6 +15,7 @@ interface ConditionFormProps { formContext: 'creating' | 'editing'; patientUuid?: string; } + const conditionSchema = z.object({ clinicalStatus: z.string(), endDate: z.date().optional(), @@ -45,7 +46,7 @@ const ConditionsForm: React.FC = ({ closeWorkspace, conditio : null : null, clinicalStatus: condition?.cells?.find((cell) => cell?.info?.header === 'clinicalStatus')?.value ?? 'Active', - search: condition?.cells?.find((cell) => cell?.info?.header === 'display')?.value, + search: '', }, }); @@ -65,7 +66,7 @@ const ConditionsForm: React.FC = ({ closeWorkspace, conditio patientUuid={patientUuid} closeWorkspace={closeWorkspace} conditionToEdit={condition} - editing={formContext === 'editing' ? true : false} + editing={formContext === 'editing'} setErrorCreating={setErrorCreating} setErrorUpdating={setErrorUpdating} isSubmittingForm={isSubmittingForm} @@ -102,7 +103,7 @@ const ConditionsForm: React.FC = ({ closeWorkspace, conditio