diff options
author | David Tsay <3614296+davetsay@users.noreply.github.com> | 2020-08-11 23:46:41 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-11 23:46:41 +0300 |
commit | c7d8d91e879f089e6109ae314148d93f9d21e35b (patch) | |
tree | 3a0f2d34fee50a36e4482f60f50fe9dd780a6ad4 | |
parent | 2d19975917c7eb4178c92bf5b4941e2d41ddc2dd (diff) |
fix length of undefined check (#3292)v1.2-RC7
-rw-r--r-- | src/plugins/plot/src/plot/MCTPlotController.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/plot/src/plot/MCTPlotController.js b/src/plugins/plot/src/plot/MCTPlotController.js index 7a442e132..1e598f9b4 100644 --- a/src/plugins/plot/src/plot/MCTPlotController.js +++ b/src/plugins/plot/src/plot/MCTPlotController.js @@ -545,7 +545,7 @@ define([ }; MCTPlotController.prototype.isEnabledXKeyToggle = function () { - const isSinglePlot = this.$scope.xKeyOptions.length > 1 && this.$scope.series.length === 1; + const isSinglePlot = this.$scope.xKeyOptions && this.$scope.xKeyOptions.length > 1 && this.$scope.series.length === 1; const isFrozen = this.config.xAxis.get('frozen'); const inRealTimeMode = this.config.openmct.time.clock(); |