Bo Peng пре 7 година
родитељ
комит
1fa022b1c6
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      packages/notebook-extension/src/index.ts

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

@@ -808,10 +808,10 @@ function addCommands(app: JupyterLab, services: ServiceManager, tracker: Noteboo
               insertMode: 'split-bottom',
               activate: false
             }).then((panel) => {
-              if (panel.session.status == 'unknown') {
+              if (panel.session.status === 'unknown') {
                 // if the panel is newly created, we can only submit after the kernel is connected
                 panel.session.statusChanged.connect(() => {
-                  if (panel.session.status == 'connected') {
+                  if (panel.session.status === 'connected') {
                     // cell will lose focus during the creation of the console
                     editor.focus();
                     return commands.execute('console:inject', { activate: false, code, path });