From ca2633fb798ea19b727e81c2fbda590e1b163aa6 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Mon, 19 Dec 2022 18:08:16 -0800 Subject: [PATCH] fix config populating bug --- scripts/config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/config.js b/scripts/config.js index 81752ec..6955642 100644 --- a/scripts/config.js +++ b/scripts/config.js @@ -22,7 +22,7 @@ function addFormLine (id, labelAttr, inputAttr) { let labelWrapperDiv = document.createElement("div"); let label = document.createElement("label"); label.for = id; - for (k in labelAttr) { + for (let k in labelAttr) { label.k = labelAttr.k; } labelWrapperDiv.append(label); @@ -33,7 +33,7 @@ function addFormLine (id, labelAttr, inputAttr) { let input = document.createElement("input"); input.id = id; input.name = id; - for (k in inputAttr) { + for (let k in inputAttr) { input.k = inputAttr.k; } inputWrapperDiv.append(input);