Skip to content

Commit c2d2bc0

Browse files
committed
Fix for loop track by warning.
1 parent 8a6d75d commit c2d2bc0

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

public/src/app/applications/app-public-notices/public-notices-panel.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ <h3>
3636
</div>
3737
<mat-accordion multi>
3838
<!-- Public Notices Summary List-->
39-
@for (pn of notices; track pn) {
39+
@for (pn of notices; track pn.projectId) {
4040
<div>
4141
<mat-expansion-panel>
4242
<mat-expansion-panel-header>

public/src/app/applications/details-panel/details-panel.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ <h3 style="margin-right: 0.2rem;">
154154
<section>
155155
<h3>Attachments</h3>
156156
<div class="doc-list" style="width: 25rem;">
157-
@for (attachment of attachments(); track attachment) {
157+
@for (attachment of attachments(); track attachment.id) {
158158
<a class="doc-list__item"
159159
style="cursor:pointer"
160160
(click)="getFileContents(attachment.id, attachment.fileName)"

public/src/app/applications/details-panel/shape-info/shape-info.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
<!-- Feature details as list (small devices) -->
5757
<div id="sifeatureList">
5858
<ul class="shapefile-list">
59-
@for (feature of projectSpatialDetail(); track feature) {
59+
@for (feature of projectSpatialDetail(); track feature.featureId + '-' + feature.featureType.code) {
6060
<li class="shapefile-list__item"
6161
[class.highlight]="selectedRowIndex == feature.featureId + '-' + feature.featureType.code"
6262
(click)="onRowSelected(feature)">

public/src/app/applications/find-panel/find-panel.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ <h3 class="title">Find FOM</h3>
4545
[maxDate]="maxDate"
4646
onkeydown="return false"
4747
[(ngModel)]="postedOnAfterFilter().filter.value"
48-
[bsConfig]="{ dateInputFormat: 'YYYY-MM-DD', adaptivePosition: true,
49-
containerClass: 'theme-dark-blue', showWeekNumbers: false }"
48+
[bsConfig]="{ dateInputFormat: 'YYYY-MM-DD', adaptivePosition: true,
49+
containerClass: 'theme-dark-blue', showWeekNumbers: false }"
5050
/>
5151
</div>
5252
</div>
@@ -57,7 +57,7 @@ <h3 class="title">Find FOM</h3>
5757
<label class="control-label">Commenting Status</label>
5858
@if (commentStatusFilters()) {
5959
<div class="select-badge-group">
60-
@for (filter of commentStatusFilters().filters; track filter) {
60+
@for (filter of commentStatusFilters().filters; track filter.queryParam) {
6161
<div class="select-badge">
6262
<input id="find-{{filter.queryParam}}" type="checkbox" name="{{filter.queryParam}}"
6363
[checked]="filter.value"

public/src/app/applications/projects.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
<div class="form-group">
5757
@if (commentStatusFilters(); as commentStatusFilters) {
5858
<div class="select-badge-group">
59-
@for (filter of commentStatusFilters.filters; track filter) {
59+
@for (filter of commentStatusFilters.filters; track filter.queryParam) {
6060
<div class="select-badge"
6161
[style.display]="loading() ? 'none' : null">
6262
<input type="checkbox" id="project-{{filter.queryParam}}" name="{{filter.queryParam}}"

0 commit comments

Comments
 (0)