Skip to content

Commit adb91e4

Browse files
perf(module:transfer): use item.key as tracking for the list render (#9123)
1 parent 0f7f94d commit adb91e4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎components/transfer/transfer-list.component.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ import { NzTransferSearchComponent } from './transfer-search.component';
9696
} @else {
9797
@if (stat.shownCount > 0) {
9898
<ul class="ant-transfer-list-content">
99-
@for (item of validData; track item) {
99+
@for (item of validData; track item.key) {
100100
<li
101101
(click)="!oneWay ? onItemSelect(item) : null"
102102
class="ant-transfer-list-content-item"

0 commit comments

Comments
 (0)