From c8e5e0d2ea87254baf9c832db621da16c0e4671b Mon Sep 17 00:00:00 2001 From: b Date: Sat, 1 May 2021 07:22:16 -0700 Subject: [PATCH] QOL fix for build reset --- builder.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/builder.js b/builder.js index bcf4438..8c919c1 100644 --- a/builder.js +++ b/builder.js @@ -3,7 +3,7 @@ const url_tag = location.hash.slice(1); // console.log(url_tag); -const BUILD_VERSION = "7.0.4"; +const BUILD_VERSION = "7.0.5"; function setTitle() { let text; @@ -422,9 +422,13 @@ function calculateBuild(save_skp, skp){ let equipment = [ null, null, null, null, null, null, null, null, null ]; for (let i in equipment) { let equip = getValue(equipmentInputs[i]).trim(); - if (equip === "") { equip = "No " + equipment_names[i] } + if (equip === "") { + equip = "No " + equipment_names[i] + } + else { + setValue(equipmentInputs[i], equip); + } equipment[i] = equip; - setValue(equipmentInputs[i], equip); } let powderings = []; let errors = [];