Explorar el Código

Fix mimerenderer data handling

Steven Silvester hace 7 años
padre
commit
d8cc2be472
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      packages/docregistry/src/default.ts

+ 1 - 1
packages/docregistry/src/default.ts

@@ -496,7 +496,7 @@ class MimeRenderer extends Widget implements DocumentRegistry.IReadyWidget {
   private _render(): Promise<void> {
     let context = this._context;
     let model = context.model;
-    let data: JSONObject;
+    let data: JSONObject = {};
     if (this._dataType === 'string') {
       data[this._mimeType] = model.toString();
     } else {