Browse Source

HUE-6869 [assist] Fix JS error when closing an open topic

Johan Ahlen 7 years ago
parent
commit
69f49811dc
1 changed files with 3 additions and 1 deletions
  1. 3 1
      desktop/core/src/desktop/templates/assist.mako

+ 3 - 1
desktop/core/src/desktop/templates/assist.mako

@@ -2394,7 +2394,9 @@ from desktop.views import _ko
         self.selectedTopic = ko.observable();
 
         var selectedSub = self.selectedTopic.subscribe(function (newTopic) {
-          newTopic.load();
+          if (newTopic) {
+            newTopic.load();
+          }
         });
 
         self.disposals.push(function () {