This commit is contained in:
SteVen Batten
2021-10-29 12:58:41 -07:00
committed by GitHub
parent 9e096252ba
commit 53ed98bb3f

View File

@@ -269,7 +269,7 @@ export abstract class BasePanelPart extends CompositePart<PaneComposite> impleme
if (activeContainers.length) {
if (this.getActivePaneComposite()?.getId() === panelId) {
const defaultPanelId = this.viewDescriptorService.getDefaultViewContainer(this.viewContainerLocation)!.id;
const defaultPanelId = this.viewDescriptorService.getDefaultViewContainer(this.viewContainerLocation)?.id;
const containerToOpen = activeContainers.filter(c => c.id === defaultPanelId)[0] || activeContainers[0];
await this.openPaneComposite(containerToOpen.id);
}