Skip to content

Commit

Permalink
hot fix
Browse files Browse the repository at this point in the history
  • Loading branch information
elaihau committed Mar 27, 2018
1 parent f4de4f5 commit 1f6b54d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/core/src/browser/shell/application-shell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,14 @@ export class ApplicationShell extends Widget {
/**
* Apply a shell layout that has been previously created with `getLayoutData`.
*/
setLayoutData({ mainPanel, bottomPanel, leftPanel, rightPanel, statusBar }: ApplicationShell.LayoutData): void {
setLayoutData(layoutData: ApplicationShell.LayoutData): void {
// tslint:disable:no-any
const mainPanel = layoutData.mainPanel || (layoutData as any).mainArea;
const bottomPanel = layoutData.bottomPanel;
const leftPanel = layoutData.leftPanel || (layoutData as any).leftBar;
const rightPanel = layoutData.rightPanel || (layoutData as any).rightBar;
const statusBar = layoutData.statusBar;
// tslint:enable:no-any
if (mainPanel) {
this.mainPanel.restoreLayout(mainPanel);
this.registerWithFocusTracker(mainPanel.main);
Expand Down

0 comments on commit 1f6b54d

Please sign in to comment.