Skip to content

Commit c6c9b56

Browse files
committed
Moving datarevision incrementor to right place
1 parent ba4e630 commit c6c9b56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/shared/plot/plot.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ export class PlotComponent implements OnInit, OnChanges, OnDestroy, DoCheck {
148148
if (this.dataDiffer) {
149149
const dataHasDiff = this.dataDiffer.diff(this.data);
150150
if (dataHasDiff) {
151-
this.datarevision += 1;
152151
shouldUpdate = true;
153152
}
154153
} else if (Array.isArray(this.data)) {
@@ -158,6 +157,7 @@ export class PlotComponent implements OnInit, OnChanges, OnDestroy, DoCheck {
158157
}
159158

160159
if (shouldUpdate && this.plotlyInstance) {
160+
this.datarevision += 1;
161161
this.updatePlot();
162162
}
163163
}

0 commit comments

Comments
 (0)