mirror of
https://github.com/nasa/openmct.git
synced 2025-04-21 17:41:43 +00:00
fix: check if stats is present before reseting zoom (#2029)
This commit is contained in:
parent
e2217e008a
commit
062ba4a9d7
@ -152,7 +152,7 @@ define([
|
||||
this.resetStats();
|
||||
},
|
||||
toggleAutoscale: function (autoscale) {
|
||||
if (autoscale) {
|
||||
if (autoscale && this.has('stats')) {
|
||||
this.set('displayRange', this.applyPadding(this.get('stats')));
|
||||
} else {
|
||||
this.set('displayRange', this.get('range'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user