diff --git a/js/index.js b/js/index.js index 0c1662a27..bc90fcdbb 100644 --- a/js/index.js +++ b/js/index.js @@ -403,7 +403,7 @@ function checkDependencies(app, uploadOptions) { if (found) console.log(`Found dependency in installed app '${found.id}'`); else { - var foundApps = appJSON.filter(app=>app.type==dependency); + let foundApps = appJSON.filter(app=>app.type==dependency); if (!foundApps.length) throw new Error(`Dependency of '${dependency}' listed, but nothing satisfies it!`); console.log(`Apps ${foundApps.map(f=>`'${f.id}'`).join("/")} implement '${dependency}'`); found = foundApps[0]; // choose first app in list