Procházet zdrojové kódy

Bugfix: Correctly check if a cell is registered with the foreign handler.

Afshin Darian před 8 roky
rodič
revize
3fe751bc34
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/console/foreign.ts

+ 1 - 1
src/console/foreign.ts

@@ -120,7 +120,7 @@ class ForeignHandler implements IDisposable {
     case 'display_data':
     case 'stream':
     case 'error':
-      if (!(parentMsgId in this._cells)) {
+      if (!this._cells.has(parentMsgId)) {
         // This is an output from an input that was broadcast before our
         // session started listening. We will ignore it.
         console.warn('Ignoring output with no associated input cell.');