From abe70d0b72527e12bf8dacc4913fc061215095a0 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; }