瀏覽代碼

Make sure we don't pass null string.

Brian E. Granger 7 年之前
父節點
當前提交
78db6f5eca
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;