Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 31954d0

Browse files
committed
fix set_last_checkpoint when no checkpoint
closes ipython#3260
1 parent 1ecd8a0 commit 31954d0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

IPython/frontend/html/notebook/static/js/savewidget.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@ var IPython = (function (IPython) {
138138
}
139139

140140
SaveWidget.prototype.set_last_checkpoint = function (checkpoint) {
141+
if (!checkpoint) {
142+
this.set_checkpoint_status("");
143+
}
141144
var d = new Date(checkpoint.last_modified);
142145
this.set_checkpoint_status(
143146
"Last Checkpoint: " + d.format('mmm dd HH:MM')

0 commit comments

Comments
 (0)