[Library]: advancedSearchForm.component: Remove trackBy: trackByFn - workaround for bug in angular 11 - angular 14 has fixed its error.
This commit is contained in:
parent
508dac6c4d
commit
16d4df483f
|
@ -26,7 +26,7 @@
|
|||
<td class="uk-text-bold uk-text-uppercase uk-width-1-3">Searching Fields</td>
|
||||
<td class="uk-text-bold uk-text-uppercase uk-width-2-5">Terms</td>
|
||||
</tr>
|
||||
<tr *ngFor="let selectedField of selectedFields; let i = index; trackBy: trackByFn">
|
||||
<tr *ngFor="let selectedField of selectedFields; let i = index;">
|
||||
<td>
|
||||
<div class="uk-grid uk-flex-middle uk-child-width-1-2@m uk-child-width-1-1">
|
||||
<div input [(value)]="selectedField.id" inputClass="border-bottom"
|
||||
|
|
|
@ -213,8 +213,4 @@ export class AdvancedSearchFormComponent implements OnInit, OnDestroy, OnChanges
|
|||
onlyIncludesSupported(index: number) {
|
||||
return (this.selectedFields[index] && this.selectedFields[index].operatorId === 'or') || (this.selectedFields[index+1] && this.selectedFields[index+1].operatorId === 'or')
|
||||
}
|
||||
|
||||
trackByFn(index, item) {
|
||||
return item.id;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue