From 80ecb3c5d2d5978eff779f9a19dea43ad26251da Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sun, 7 Jan 2024 22:13:33 +0100 Subject: [PATCH] Remove invalid ISO "none" option --- virtweb_frontend/src/widgets/forms/VMSelectIsoInput.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/virtweb_frontend/src/widgets/forms/VMSelectIsoInput.tsx b/virtweb_frontend/src/widgets/forms/VMSelectIsoInput.tsx index 7386e63..4c9def5 100644 --- a/virtweb_frontend/src/widgets/forms/VMSelectIsoInput.tsx +++ b/virtweb_frontend/src/widgets/forms/VMSelectIsoInput.tsx @@ -68,15 +68,13 @@ export function VMSelectIsoInput(p: { p.onChange(p.attachedISOs); } }} - options={[ - { label: "None", value: undefined }, - ...p.isoList.map((i) => { + options={p.isoList.map((i) => { return { label: `${i.filename} ${filesize(i.size)}`, value: i.filename, }; - }), - ]} + }) + } /> );