Skip to content

Commit

Permalink
use trackBy:column?.$$id in BodyRow component
Browse files Browse the repository at this point in the history
  • Loading branch information
jtomaszewski committed Sep 28, 2016
1 parent 9b87bef commit b63bc30
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/body/BodyRow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { StateService } from '../../services/State';
[ngStyle]="stylesByGroup('left')"
[style.width]="state.columnGroupWidths.left + 'px'">
<datatable-body-cell
*ngFor="let column of state.columnsByPin.left"
*ngFor="let column of state.columnsByPin.left; trackBy:column?.$$id"
[row]="row"
[column]="column">
</datatable-body-cell>
Expand All @@ -23,7 +23,7 @@ import { StateService } from '../../services/State';
[ngStyle]="stylesByGroup('center')"
*ngIf="state.columnsByPin.center.length">
<datatable-body-cell
*ngFor="let column of state.columnsByPin.center"
*ngFor="let column of state.columnsByPin.center; trackBy:column?.$$id"
[row]="row"
[column]="column">
</datatable-body-cell>
Expand All @@ -34,7 +34,7 @@ import { StateService } from '../../services/State';
[ngStyle]="stylesByGroup('right')"
[style.width]="state.columnGroupWidths.right + 'px'">
<datatable-body-cell
*ngFor="let column of state.columnsByPin.right"
*ngFor="let column of state.columnsByPin.right; trackBy:column?.$$id"
[row]="row"
[column]="column">
</datatable-body-cell>
Expand Down

0 comments on commit b63bc30

Please sign in to comment.