Skip to content

Commit

Permalink
fix search
Browse files Browse the repository at this point in the history
  • Loading branch information
jabahum committed Feb 20, 2025
1 parent 1866b41 commit 6d2f7de
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ const ActiveClinicalVisitsTable: React.FC<ActiveVisitsTableProps> = ({ status })
content: <span>{trimVisitNumber(patientqueue.visitNumber)}</span>,
},
name: {
content: patientqueue.patient?.display,
content: patientqueue?.patient?.person?.display,
},
provider: {
content: (
Expand Down Expand Up @@ -233,7 +233,7 @@ const ActiveClinicalVisitsTable: React.FC<ActiveVisitsTableProps> = ({ status })
),
},
}));
}, [filteredPatientQueueEntries, session.user, t, fromPage]);
}, [items, session.user, t, fromPage]);

Check warning on line 236 in packages/esm-patient-queues-app/src/active-visits/queue-patients-clinical/queue-clinical-table.component.tsx

View workflow job for this annotation

GitHub Actions / build

React Hook useMemo has a missing dependency: 'filteredPatientQueueEntries'. Either include it or remove the dependency array

if (isLoading) {
return <DataTableSkeleton role="progressbar" />;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ const ActiveTriageVisitsTable: React.FC<ActiveVisitsTableProps> = ({ status }) =
content: <span>{trimVisitNumber(patientqueue.visitNumber)}</span>,
},
name: {
content: patientqueue?.patient?.display,
content: patientqueue?.patient?.person?.display,
},
provider: {
content: (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const ReceptionHome: React.FC = () => {
...patientqueue,
id: patientqueue.uuid,
visitNumber: { content: <span>{trimVisitNumber(patientqueue?.visitNumber)}</span> },
name: { content: <span>{patientqueue?.patient?.display}</span> },
name: { content: <span>{patientqueue?.patient?.person?.display}</span> },
location: { content: <span>{patientqueue?.locationTo?.display}</span> },
status: {
content: (
Expand Down

0 comments on commit 6d2f7de

Please sign in to comment.