Explorar el Código

Make sure we don't pass null string.

Brian E. Granger hace 7 años
padre
commit
78db6f5eca
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      packages/cells/src/widget.ts

+ 1 - 1
packages/cells/src/widget.ts

@@ -562,7 +562,7 @@ class CodeCell extends Cell {
   protected onStateChanged(model: ICellModel, args: IChangedArgs<any>): void {
     switch (args.name) {
     case 'executionCount':
-      this.setPrompt(`${(model as ICodeCellModel).executionCount}`);
+      this.setPrompt(`${(model as ICodeCellModel).executionCount} || ''`);
       break;
     default:
       break;