mirror of
https://github.com/nasa/openmct.git
synced 2025-01-18 02:39:56 +00:00
Fixes resizing handler error - adds null check (#4218)
This commit is contained in:
parent
63f9cd449f
commit
953a9daafb
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user