Skip to content

Commit 80ae67e

Browse files
committed
Patient page: fix Clinical Events table search (handle numerical data)
1 parent 1f7a392 commit 80ae67e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/pages/patientView/timeline/ClinicalEventsTables.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ function makeColumns(data: string[][]) {
1919
txt: string,
2020
filterString: string,
2121
filterStringUpper: string
22-
) => txt.toUpperCase().includes(filterStringUpper),
22+
) =>
23+
txt
24+
?.toString()
25+
.toUpperCase()
26+
.includes(filterStringUpper),
2327
};
2428
});
2529
}

0 commit comments

Comments
 (0)