From ae303f70d848d29b5c200e3a5afb03f8da9ca05d Mon Sep 17 00:00:00 2001 From: Mariusz Jurowicz Date: Tue, 16 Jan 2018 15:24:48 +0100 Subject: [PATCH] #5273 fix combinePlotScope error when deleting containing cell --- js/notebook/src/Plot.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/notebook/src/Plot.js b/js/notebook/src/Plot.js index 7b272ba151..aec39edf00 100644 --- a/js/notebook/src/Plot.js +++ b/js/notebook/src/Plot.js @@ -74,8 +74,9 @@ var PlotView = widgets.DOMWidgetView.extend({ that._currentScope.scopes.forEach(function(scope) { scope.destroy(); }); + } else if (that._currentScope) { + that._currentScope.destroy(); } - that._currentScope.destroy(); setTimeout(function() { that._currentScope = null; }); });