Skip to content

Commit e14a016

Browse files
committed
Remove track by to fix UI error
1 parent ecd74a6 commit e14a016

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

projects/stream-chat-angular/src/lib/polls/poll-composer/poll-composer.component.html

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,11 @@
8080
</div>
8181
<ng-container formArrayName="options">
8282
<div class="str-chat__form__input-fieldset__values">
83+
<!-- eslint-disable @angular-eslint/template/use-track-by-function -->
8384
<ng-container
84-
*ngFor="
85-
let option of options.controls;
86-
let i = index;
87-
trackBy: trackByOptionValue
88-
"
85+
*ngFor="let option of options.controls; let i = index"
8986
>
87+
<!-- eslint-enable @angular-eslint/template/use-track-by-function -->
9088
<div class="str-chat__drag-and-drop-container__item">
9189
<div class="str-chat__form__input-field">
9290
<input

projects/stream-chat-angular/src/lib/polls/poll-composer/poll-composer.component.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,6 @@ export class PollComposerComponent {
112112
};
113113
}
114114

115-
trackByOptionValue(_: number, option: FormControl<string | null>) {
116-
return option.value;
117-
}
118-
119115
async createPoll() {
120116
try {
121117
const maxVotesControl = this.formGroup.get('maximum_number_of_votes');

0 commit comments

Comments
 (0)