Forráskód Böngészése

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

Afshin Darian 8 éve
szülő
commit
3fe751bc34
1 módosított fájl, 1 hozzáadás és 1 törlés
  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.');