mirror of
https://github.com/nasa/openmct.git
synced 2025-06-15 05:38:12 +00:00
Fixes resizing handler error - adds null check (#4218)
This commit is contained in:
@ -1029,7 +1029,8 @@ export default {
|
|||||||
this.$emit('statusUpdated', status);
|
this.$emit('statusUpdated', status);
|
||||||
},
|
},
|
||||||
handleWindowResize() {
|
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.offsetWidth = this.$parent.$refs.plotWrapper.offsetWidth;
|
||||||
this.config.series.models.forEach(this.loadSeriesData, this);
|
this.config.series.models.forEach(this.loadSeriesData, this);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user