Repository: ignite
Updated Branches:
  refs/heads/master 93498abc4 -> f01825165


IGNITE-9598 Web Console: Fixed error in NotebookCtrl onDestroy hook.


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/f0182516
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/f0182516
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/f0182516

Branch: refs/heads/master
Commit: f0182516500da3fa3db45286246cb0bdce88f416
Parents: 93498ab
Author: Alexander Kalinin <[email protected]>
Authored: Mon Sep 17 14:45:26 2018 +0700
Committer: Alexey Kuznetsov <[email protected]>
Committed: Mon Sep 17 14:45:26 2018 +0700

----------------------------------------------------------------------
 .../page-queries/components/queries-notebook/controller.js    | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/f0182516/modules/web-console/frontend/app/components/page-queries/components/queries-notebook/controller.js
----------------------------------------------------------------------
diff --git 
a/modules/web-console/frontend/app/components/page-queries/components/queries-notebook/controller.js
 
b/modules/web-console/frontend/app/components/page-queries/components/queries-notebook/controller.js
index 4184e9f..3db1661 100644
--- 
a/modules/web-console/frontend/app/components/page-queries/components/queries-notebook/controller.js
+++ 
b/modules/web-console/frontend/app/components/page-queries/components/queries-notebook/controller.js
@@ -1964,11 +1964,8 @@ export class NotebookCtrl {
         };
     }
 
-    $onInit() {
-
-    }
-
     $onDestroy() {
-        this.refresh$.unsubscribe();
+        if (this.refresh$)
+            this.refresh$.unsubscribe();
     }
 }

Reply via email to