From 4e5a566a0f1b0c7eb4599a4703cf0fd04ae3ce5d Mon Sep 17 00:00:00 2001 From: Adrian Kunz Date: Sun, 18 Aug 2024 11:08:50 +0200 Subject: [PATCH] fix: Resolve some warnings --- .../audit/equipment-overview/equipment-overview.component.ts | 2 +- src/app/audit/photos/photos.component.html | 2 +- .../create-equipment/create-equipment.component.html | 2 +- .../equipment/equipment-list/equipment-list.component.html | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app/audit/equipment-overview/equipment-overview.component.ts b/src/app/audit/equipment-overview/equipment-overview.component.ts index f069664..f2e6a3e 100644 --- a/src/app/audit/equipment-overview/equipment-overview.component.ts +++ b/src/app/audit/equipment-overview/equipment-overview.component.ts @@ -14,7 +14,7 @@ import {Zone} from '../../shared/model/zone.interface'; export class EquipmentOverviewComponent implements OnInit { details?: AuditDetails; zones: Zone[] = []; - zonesById: Record = {}; + zonesById: Partial> = {}; readonly sections: [string, keyof AuditDetails][] = [ ['HVAC', 'HVAC'], diff --git a/src/app/audit/photos/photos.component.html b/src/app/audit/photos/photos.component.html index 52b4b69..45a2143 100644 --- a/src/app/audit/photos/photos.component.html +++ b/src/app/audit/photos/photos.component.html @@ -61,7 +61,7 @@ Type diff --git a/src/app/equipment/create-equipment/create-equipment.component.html b/src/app/equipment/create-equipment/create-equipment.component.html index b38face..b6d20d4 100644 --- a/src/app/equipment/create-equipment/create-equipment.component.html +++ b/src/app/equipment/create-equipment/create-equipment.component.html @@ -1,6 +1,6 @@ - New {{ types[0]?.equipment?.equipmentName }} + New {{ types[0].equipment.equipmentName }}
diff --git a/src/app/equipment/equipment-list/equipment-list.component.html b/src/app/equipment/equipment-list/equipment-list.component.html index f9a7653..427b521 100644 --- a/src/app/equipment/equipment-list/equipment-list.component.html +++ b/src/app/equipment/equipment-list/equipment-list.component.html @@ -5,12 +5,12 @@ @for (item of subtypes; track item) { - @if (item?.type?.name === 'HVAC') { + @if (item.type.name === 'HVAC') {