]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/dashboard: fix sparkline component
authoralfonsomthd <almartin@redhat.com>
Fri, 15 Mar 2019 13:54:04 +0000 (14:54 +0100)
committeralfonsomthd <almartin@redhat.com>
Fri, 15 Mar 2019 13:54:04 +0000 (14:54 +0100)
Fixes: https://tracker.ceph.com/issues/38768
Signed-off-by: Alfonso Martínez <almartin@redhat.com>
src/pybind/mgr/dashboard/frontend/src/app/shared/components/sparkline/sparkline.component.ts

index 565f7e4dbced6c3fa0e7ccfaafa25fc33cc88d05..6b2a268d7fecadc669de1e4c7edeb5dfe8a047f5 100644 (file)
@@ -117,7 +117,6 @@ export class SparklineComponent implements OnInit, OnChanges {
 
   ngOnChanges(changes: SimpleChanges) {
     this.datasets[0].data = changes['data'].currentValue;
-    this.datasets = [...this.datasets];
     this.labels = [...Array(changes['data'].currentValue.length)];
   }
 }