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

Fixes location management page not opening from CNS if no patient present in monitor #8155

Merged
merged 2 commits into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
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
Loading