From dfba5cdd5a9c436dd04bb7bd3f6c887afa90f9b7 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Mon, 16 Jan 2023 15:27:41 -0800 Subject: [PATCH] remove unit from size Signed-off-by: Arthur Lu --- scripts/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/config.js b/scripts/config.js index 1f05d28..f7bd1cc 100644 --- a/scripts/config.js +++ b/scripts/config.js @@ -142,7 +142,7 @@ function addDiskLine (fieldset, busPrefix, busName, device, storage, storageOpti let sizeInput = document.createElement("input"); sizeInput.type = "number"; sizeInput.min = 0; - sizeInput.value = size; + sizeInput.value = size.replace("G", ""); if (!diskConfig[type][busPrefix].resizable) { sizeInput.disabled = true; }