Skip to content

Commit d94c81f

Browse files
authored
Merge pull request #4751 from alisman/fxTreatSearch
Patient page: fix Clinical Events table search (handle numerical data)
2 parents 1f7a392 + 80ae67e commit d94c81f

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)