Forráskód Böngészése

HUE-8906 [assist] Fix broken filter in the language reference panel

Johan Ahlen 6 éve
szülő
commit
36d69d250e

+ 2 - 2
desktop/core/src/desktop/js/ko/components/assist/ko.assistLangRefPanel.js

@@ -90,7 +90,7 @@ class LanguageReferenceTopic {
     this.weight = 1;
     this.weight = 1;
     this.children = [];
     this.children = [];
     entry.children.forEach(child => {
     entry.children.forEach(child => {
-      this.children.push(new LanguageReferenceTopic(child, self.index));
+      this.children.push(new LanguageReferenceTopic(child, this.index));
     });
     });
     this.loadDeferred = $.Deferred();
     this.loadDeferred = $.Deferred();
     this.loading = ko.observable(false);
     this.loading = ko.observable(false);
@@ -223,7 +223,7 @@ class AssistLangRefPanel {
         topic.children.forEach(findInside);
         topic.children.forEach(findInside);
       };
       };
 
 
-      this.topics.forEach(findInside);
+      this.topics().forEach(findInside);
 
 
       window.setTimeout(() => {
       window.setTimeout(() => {
         // Initial sort deferred for promises to complete
         // Initial sort deferred for promises to complete