浏览代码

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