mirror of
https://github.com/nasa/openmct.git
synced 2024-12-19 05:07:52 +00:00
fix preview by checking before accessing key, fix delay of resize, by using leading:true option of debounce (#5054)
This commit is contained in:
parent
a3c0e073c8
commit
91bcd78d40
@ -536,7 +536,7 @@ export default {
|
||||
this.updateRelatedTelemetryForFocusedImage = _.debounce(this.updateRelatedTelemetryForFocusedImage, 400);
|
||||
|
||||
// for resizing the object view
|
||||
this.resizeImageContainer = _.debounce(this.resizeImageContainer, 400);
|
||||
this.resizeImageContainer = _.debounce(this.resizeImageContainer, 400, { leading: true });
|
||||
|
||||
if (this.$refs.imageBG) {
|
||||
this.imageContainerResizeObserver = new ResizeObserver(this.resizeImageContainer);
|
||||
|
@ -128,7 +128,7 @@ export default {
|
||||
return;
|
||||
}
|
||||
|
||||
const isExistingView = viewProvider.key === this.existingView.key;
|
||||
const isExistingView = viewProvider.key === this.existingView?.key;
|
||||
|
||||
this.clear();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user