Skip to content

Commit

Permalink
updated type of asset
Browse files Browse the repository at this point in the history
  • Loading branch information
shyamprakash123 committed Dec 24, 2023
1 parent ccfef29 commit 6557986
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Components/Facility/ConsultationDetails/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import { ConsultationNeurologicalMonitoringTab } from "./ConsultationNeurologica
import { ConsultationNutritionTab } from "./ConsultationNutritionTab";
import PatientNotesSlideover from "../PatientNotesSlideover";
import LegacyDiagnosesList from "../../Diagnosis/LegacyDiagnosesList";
import { AssetBedModel } from "../../Assets/AssetTypes";

const Loading = lazy(() => import("../../Common/Loading"));
const PageTitle = lazy(() => import("../../Common/PageTitle"));
Expand Down Expand Up @@ -129,11 +130,9 @@ export const ConsultationDetails = (props: any) => {
: null;
const isCameraAttachedRes =
assetRes != null
? assetRes.data.results.some(
(asset: { asset_object: { asset_class: string } }) => {
return asset?.asset_object?.asset_class === "ONVIF";
}
)
? assetRes.data.results.some((asset: AssetBedModel) => {
return asset?.asset_object?.asset_class === "ONVIF";
})
: false;
setIsCameraAttached(isCameraAttachedRes);
const id = res.data.patient;
Expand Down

0 comments on commit 6557986

Please sign in to comment.