From 2f7c6bd4c0e783e1d24377fc1dcefd291d7dce33 Mon Sep 17 00:00:00 2001 From: Rithvik Nishad Date: Fri, 23 Jun 2023 05:42:50 +0530 Subject: [PATCH] fixes #5758 (#5759) --- src/Components/Patient/SampleDetails.tsx | 2 +- src/Components/Patient/models.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Components/Patient/SampleDetails.tsx b/src/Components/Patient/SampleDetails.tsx index 79a75141896..dc5995792ab 100644 --- a/src/Components/Patient/SampleDetails.tsx +++ b/src/Components/Patient/SampleDetails.tsx @@ -420,7 +420,7 @@ export const SampleDetails = ({ id }: SampleDetailsProps) => { Countries travelled:{" "} - {JSON.parse(sampleDetails.patient_travel_history).join(", ")} + {sampleDetails.patient_travel_history.join(", ")} )} {sampleDetails.sample_type && ( diff --git a/src/Components/Patient/models.tsx b/src/Components/Patient/models.tsx index effc3e3dcc9..bdfe777bd48 100644 --- a/src/Components/Patient/models.tsx +++ b/src/Components/Patient/models.tsx @@ -143,7 +143,7 @@ export interface SampleTestModel { patient_has_sari?: boolean; patient_has_confirmed_contact?: boolean; patient_has_suspected_contact?: boolean; - patient_travel_history?: string; + patient_travel_history?: string[]; facility?: number; facility_object?: { id: number;