Explorar el Código

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

Mostly for Impala now, we do nothing special for Spark sessions.
Romain Rigaux hace 11 años
padre
commit
040d52a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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)
       });
     }
   };