Skip to content

Commit

Permalink
Fixes location management page not opening from CNS if no patient pre…
Browse files Browse the repository at this point in the history
…sent in monitor (#8155)
  • Loading branch information
rithviknishad authored Jul 17, 2024
1 parent 4d18d96 commit de37c31
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Components/Facility/models.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,8 @@ export interface BedModel {
facility?: string;
location_object?: {
name: string;
id?: string;
id: string;
facility?: { name: string; id: string };
};
location?: string;
is_occupied?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion src/Components/VitalsMonitor/VitalsMonitorHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const VitalsMonitorHeader = ({ patientAssetBed }: VitalsMonitorHeaderProps) => {
{bed && (
<Link
className="flex flex-col items-end gap-2 text-secondary-500 md:flex-row md:items-center"
href={`/facility/${patient?.facility_object?.id}/location/${bed?.location_object?.id}/beds`}
href={`/facility/${bed.location_object!.facility!.id}/location/${bed!.location_object!.id}/beds`}
>
<span className="flex items-center gap-1 hover:text-white">
<CareIcon icon="l-bed" className="text-sm md:text-base" />
Expand Down

0 comments on commit de37c31

Please sign in to comment.