try array copy

This commit is contained in:
2017-04-04 22:04:54 +02:00
parent 0824daf2d6
commit cebf918081
+1 -1
View File
@@ -57,7 +57,7 @@ export class LineChartComponent implements OnInit {
newDataSet.push(newLine); newDataSet.push(newLine);
this.lineChartData = newDataSet; this.lineChartData = newDataSet;
this.lineChartLabels = res.labels.data; this.lineChartLabels = res.labels.data.slice();
}); });
console.log("Init"); console.log("Init");