Эх сурвалжийг харах

[spark] Send all the snippet to close when leaving the notebook

Mostly for Impala now, we do nothing special for Spark sessions.
Romain Rigaux 10 жил өмнө
parent
commit
040d52a

+ 1 - 1
apps/spark/src/spark/static/spark/js/spark.ko.js

@@ -610,7 +610,7 @@ var Notebook = function (vm, notebook) {
   self.close = function () {
     if (self.id() != null) {
       $.post("/spark/api/notebook/close", {
-        "notebook": ko.mapping.toJSON(self.getContext())
+        "notebook": ko.mapping.toJSON(self)
       });
     }
   };