Skip to content

Commit

Permalink
fix: Resolve some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Clashsoft committed Aug 26, 2024
1 parent a9bef9d commit 4e5a566
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {Zone} from '../../shared/model/zone.interface';
export class EquipmentOverviewComponent implements OnInit {
details?: AuditDetails;
zones: Zone[] = [];
zonesById: Record<number, Zone> = {};
zonesById: Partial<Record<number, Zone>> = {};

readonly sections: [string, keyof AuditDetails][] = [
['HVAC', 'HVAC'],
Expand Down
2 changes: 1 addition & 1 deletion src/app/audit/photos/photos.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
<span>Type</span>
<select [(ngModel)]="subType" (change)="changeSubType()" class="form-select">
@for (item of subTypeList; track item) {
<option [value]="item.id">{{ (item.name | uppercase) + ' - ' + (item.type?.name | uppercase) }}</option>
<option [value]="item.id">{{ (item.name | uppercase) + ' - ' + (item.type.name | uppercase) }}</option>
}
</select>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<ngbx-modal #modal [back]="['..']">
<ng-container modal-title>
New {{ types[0]?.equipment?.equipmentName }}
New {{ types[0].equipment.equipmentName }}
</ng-container>
<ng-container modal-body>
<div class="mb-3">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
@for (item of subtypes; track item) {
<app-feature-card
[title]="item.name | titlecase"
[subtitle]="item.type?.name"
[subtitle]="item.type.name"
[routerLink]="['types', item.id]"
[percentageQuery]="{percentageType: 'form', zoneId: this.route.snapshot.params.zid, subTypeId: item.id}"
>
<app-option-dropdown options style="z-index: 900">
@if (item?.type?.name === 'HVAC') {
@if (item.type.name === 'HVAC') {
<h5 class="dropdown-header">
HVAC Specific
</h5>
Expand Down

0 comments on commit 4e5a566

Please sign in to comment.