Ver Fonte

Fix layout restorer instantiation in extension.

Afshin T. Darian há 5 anos atrás
pai
commit
3b23914873
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      packages/application-extension/src/index.tsx

+ 1 - 1
packages/application-extension/src/index.tsx

@@ -196,7 +196,7 @@ const layout: JupyterFrontEndPlugin<ILayoutRestorer> = {
   activate: (app: JupyterFrontEnd, state: IStateDB, labShell: ILabShell) => {
     const first = app.started;
     const registry = app.commands;
-    const restorer = new LayoutRestorer({ first, registry, state });
+    const restorer = new LayoutRestorer({ connector: state, first, registry });
 
     void restorer.fetch().then(saved => {
       labShell.restoreLayout(saved);