Explorar el Código

Fix layout restorer instantiation in extension.

Afshin T. Darian hace 5 años
padre
commit
3b23914873
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);