Browse Source

Adapt the PR to latest master

Bo Peng 6 years ago
parent
commit
299775459f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/notebook-extension/src/index.ts

+ 2 - 2
packages/notebook-extension/src/index.ts

@@ -772,9 +772,9 @@ function addCommands(app: JupyterLab, services: ServiceManager, tracker: Noteboo
       const current = getCurrent(args);
 
       if (current) {
-        const { context, notebook } = current;
+        const { context, content } = current;
 
-        let cell = notebook.activeCell;
+        let cell = content.activeCell;
         let path = context.path;
         // ignore action in non-code cell
         if (!cell || cell.model.type !== 'code') {