Skip to content

Commit db918f0

Browse files
Updated variables
Signed-off-by: Natalia Luzuriaga <[email protected]>
1 parent f6b377e commit db918f0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

js/formDataToJson.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ async function populateCodeJson(data) {
3636
// Path to the blank json file
3737
const filePath = "schemas/template-code.json";
3838

39-
var codeJson = await retrieveFile(filePath);
39+
let codeJson = await retrieveFile(filePath);
4040

4141
if (codeJson) {
4242
populateObject(data, codeJson);

js/generateFormComponents.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ function createComponent(fieldName, fieldObject) {
3636

3737
// Iterates through each json field and creates component array for Form.io
3838
async function createFormComponents() {
39-
var components = [];
40-
var formFields = {};
39+
let components = [];
40+
let formFields = {};
4141

42-
var filePath = "schemas/schema.json";
43-
var jsonData = await retrieveFile(filePath);
42+
const filePath = "schemas/schema.json";
43+
let jsonData = await retrieveFile(filePath);
4444
console.log("JSON Data:", jsonData);
4545

4646
formFields = jsonData["properties"];

0 commit comments

Comments
 (0)