From 657adafb7d823cd1fc7b04131b609f2d5eaa4a9f Mon Sep 17 00:00:00 2001 From: Chris LaFreniere <40371649+chlafreniere@users.noreply.github.com> Date: Fri, 5 Apr 2019 11:34:10 -0700 Subject: [PATCH] always serialize execution count (#4864) --- src/sql/parts/notebook/models/cell.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sql/parts/notebook/models/cell.ts b/src/sql/parts/notebook/models/cell.ts index 104696b2c7..76481698e7 100644 --- a/src/sql/parts/notebook/models/cell.ts +++ b/src/sql/parts/notebook/models/cell.ts @@ -420,7 +420,7 @@ export class CellModel implements ICellModel { if (this._cellType === CellTypes.Code) { cellJson.metadata.language = this._language, cellJson.outputs = this._outputs; - cellJson.execution_count = this.executionCount; + cellJson.execution_count = this.executionCount ? this.executionCount : 0; } return cellJson as nb.ICellContents; }