1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

declare undeclared loop var

This commit is contained in:
Steve-Mcl 2022-05-04 15:10:02 +01:00
parent bd19c203e1
commit 492d1ef30e

View File

@ -255,7 +255,7 @@ RED.search = (function() {
} }
currentResults = search(value); currentResults = search(value);
if (currentResults.length > 0) { if (currentResults.length > 0) {
for (i=0;i<Math.min(currentResults.length,25);i++) { for (let i=0;i<Math.min(currentResults.length,25);i++) {
searchResults.editableList('addItem',currentResults[i]) searchResults.editableList('addItem',currentResults[i])
} }
if (currentResults.length > 25) { if (currentResults.length > 25) {