Compare commits

...

1 Commits

Author SHA1 Message Date
74538dd00c Fixes resizing handler error - adds null check 2021-09-16 15:47:45 -07:00

View File

@ -1029,7 +1029,8 @@ export default {
this.$emit('statusUpdated', status);
},
handleWindowResize() {
if (this.offsetWidth !== this.$parent.$refs.plotWrapper.offsetWidth) {
if (this.$parent.$refs.plotWrapper
&& (this.offsetWidth !== this.$parent.$refs.plotWrapper.offsetWidth)) {
this.offsetWidth = this.$parent.$refs.plotWrapper.offsetWidth;
this.config.series.models.forEach(this.loadSeriesData, this);
}