]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: fix sparkline component 27260/head
authoralfonsomthd <almartin@redhat.com>
Fri, 15 Mar 2019 13:54:04 +0000 (14:54 +0100)
committerPrashant D <pdhange@redhat.com>
Fri, 29 Mar 2019 04:51:31 +0000 (00:51 -0400)
Fixes: https://tracker.ceph.com/issues/38768
Signed-off-by: Alfonso Martínez <almartin@redhat.com>
(cherry picked from commit 36997f93a9fe1b56646bb1f6574ac204467a74ff)

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)];
   }
 }