Selaa lähdekoodia

HUE-9375 [editor] Fix js exception on filter in the UDF assist panel

Johan Ahlen 5 vuotta sitten
vanhempi
commit
d3cc8ff366

+ 1 - 1
desktop/core/src/desktop/js/ko/components/assist/ko.assistFunctionsPanel.js

@@ -138,7 +138,7 @@ class ConnectorUdfCategories {
       }
       const lowerCaseQuery = this.query().toLowerCase();
       const replaceRegexp = new RegExp('(' + lowerCaseQuery + ')', 'i');
-      this.categories.forEach(category => {
+      this.categories().forEach(category => {
         category.functions.forEach(fn => {
           if (fn.signature.toLowerCase().indexOf(lowerCaseQuery) === 0) {
             fn.weight = 2;