Skip to content

Commit 9538891

Browse files
authored
fix(form:array): fix track to identify each item uniquely (#1892)
- close ng-alain/ng-alain#2554
1 parent e35c6fb commit 9538891

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/form/src/widgets/array/array.widget.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ import { ArrayLayoutWidget } from '../../widget';
4646
<div nz-col class="ant-form-item-control-wrapper" [nzSpan]="ui.spanControl!" [nzOffset]="ui.offsetControl!">
4747
<div class="ant-form-item-control" [class.has-error]="showError">
4848
<div nz-row class="sf__array-container">
49-
@for (i of $any(formProperty).properties; track $index) {
49+
@for (i of $any(formProperty).properties; track i) {
5050
@if (i.visible && !i.ui.hidden) {
5151
<div nz-col [nzSpan]="arraySpan" [attr.data-index]="$index" class="sf__array-item">
5252
<nz-card>

0 commit comments

Comments
 (0)