Browse Source

[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 năm trước cách đây
mục cha
commit
040d52a2b6
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      apps/spark/src/spark/static/spark/js/spark.ko.js

+ 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)
       });
     }
   };