mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-21 09:35:38 -05:00
Updating the cache element and not an unlinked reference to it. (#19057)
This commit is contained in:
@@ -41,7 +41,7 @@ export class ExecutionPlanFileView {
|
||||
}
|
||||
|
||||
public onHide(parentContainer: HTMLElement): void {
|
||||
if (parentContainer === this._parent) {
|
||||
if (parentContainer === this._parent && parentContainer.contains(this._container)) {
|
||||
this._parent.removeChild(this._container);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -84,6 +84,7 @@ export class ExecutionPlanTabView implements IPanelView {
|
||||
currentView.onHide(this._container);
|
||||
this._input.graphs = [];
|
||||
currentView = this._instantiationService.createInstance(ExecutionPlanFileView);
|
||||
this._viewCache.executionPlanFileViewMap.set(this._input.executionPlanFileViewUUID, currentView);
|
||||
currentView.render(this._container);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user