Browse Source

Make sure we don't pass null string.

Brian E. Granger 7 năm trước cách đây
mục cha
commit
78db6f5eca
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;