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

HUE-4253 [editor] Prompt for variables just once per variable name

Enrico Berti преди 9 години
родител
ревизия
203e2a1
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      desktop/libs/notebook/src/notebook/static/notebook/js/notebook.ko.js

+ 3 - 1
desktop/libs/notebook/src/notebook/static/notebook/js/notebook.ko.js

@@ -379,7 +379,9 @@
 
       var match, matches = [];
       while (match = re.exec(self.statement_raw())) {
-        matches.push(match[1]);
+        if (matches.indexOf(match[1]) == -1) {
+          matches.push(match[1]);
+        }
       }
       return matches;
     });