Skip to content

Commit

Permalink
fix(Graph): Categories data point authoring (#742)
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffreykwan authored Aug 25, 2022
1 parent 02bf622 commit e1f9353
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@
<div *ngIf="series.data == null || series.data.length == 0">
This series has no starter data points. Click the "Add Data Point" button to add a starter data point if you'd like.
</div>
<div *ngFor="let dataPoint of series.data; index as dataPointIndex; first as isFirst; last as isLast">
<div *ngFor="let dataPoint of series.data; index as dataPointIndex; first as isFirst; last as isLast; trackBy: customTrackBy">
<span *ngIf="authoringComponentContent.xAxis.type === 'limits' || authoringComponentContent.xAxis.type === '' || authoringComponentContent.xAxis.type == null">
<mat-form-field class="data-point-input">
<mat-label i18n>X</mat-label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -569,4 +569,8 @@ export class GraphAuthoring extends ComponentAuthoring {
delete series.dashStyle;
}
}

customTrackBy(index: number): number {
return index;
}
}

0 comments on commit e1f9353

Please sign in to comment.