mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-17 09:35:37 -05:00
Fix modelview container removal issue (#16753)
This commit is contained in:
@@ -81,8 +81,8 @@ export abstract class ViewBase extends AngularDisposable implements IModelView {
|
||||
return descriptor;
|
||||
}
|
||||
|
||||
private removeComponent(component: IComponentShape): void {
|
||||
this.logService.debug(`Removing component ${component.id} from view ${this.id}`);
|
||||
private removeComponentChildren(component: IComponentShape): void {
|
||||
this.logService.debug(`Removing children of component ${component.id} from view ${this.id}`);
|
||||
if (component.itemConfigs) {
|
||||
for (let item of component.itemConfigs) {
|
||||
this.removeFromContainer(component.id, item);
|
||||
@@ -138,8 +138,8 @@ export abstract class ViewBase extends AngularDisposable implements IModelView {
|
||||
return;
|
||||
}
|
||||
this.logService.debug(`Removing component ${itemConfig.componentShape.id} from container ${containerId}`);
|
||||
this.removeComponentChildren(itemConfig.componentShape);
|
||||
component.removeFromContainer({ id: itemConfig.componentShape.id, type: componentRegistry.getIdForTypeMapping(itemConfig.componentShape.type) });
|
||||
this.removeComponent(itemConfig.componentShape);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user