Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MF-647: Introduce PatientTable component #20

Merged
merged 5 commits into from
Jul 19, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Minor improvements
  • Loading branch information
samuelmale committed Jul 19, 2021
commit b4c8cfc6a04c6f26a08dcb13ea2596ba314612f5
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@ const PatientTable: React.FC<PatientTableProps> = ({ patients, columns, search,
id: index,
};
columns.forEach((column) => {
const value = column.getValue ? column.getValue(patient) : patient[column.key];
const value = column.getValue?.(patient) || patient[column.key];
row[column.key] = column.link ? (
<Link
onClick={(e) => {