diff --git a/umap/static/umap/js/modules/utils.js b/umap/static/umap/js/modules/utils.js index 4a6cf680..b117cf1a 100644 --- a/umap/static/umap/js/modules/utils.js +++ b/umap/static/umap/js/modules/utils.js @@ -240,8 +240,7 @@ export function greedyTemplate(str, data, ignore) { if (staticFallback !== undefined) { vars.push(staticFallback) } - for (let i = 0; i < vars.length; i++) { - path = vars[i] + for (const path of vars) { if (path.startsWith('"') && path.endsWith('"')) { value = path.substring(1, path.length - 1) // static default value. } else {