Преглед на файлове

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

Johan Ahlen преди 6 години
родител
ревизия
36d69d250e
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      desktop/core/src/desktop/js/ko/components/assist/ko.assistLangRefPanel.js

+ 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