This commit is contained in:
@ -19,7 +19,7 @@ export function VMSelectIsoInput(p: {
|
||||
attachedISOs: string[];
|
||||
onChange: (newVal: string[]) => void;
|
||||
}): React.ReactElement {
|
||||
if (!p.attachedISOs && !p.editable) return <></>;
|
||||
if (p.attachedISOs.length === 0 && !p.editable) return <></>;
|
||||
|
||||
return (
|
||||
<>
|
||||
@ -27,7 +27,7 @@ export function VMSelectIsoInput(p: {
|
||||
const iso = p.isoList.find((d) => d.filename === isoName);
|
||||
return (
|
||||
<ListItem
|
||||
key={num}
|
||||
key={isoName}
|
||||
secondaryAction={
|
||||
p.editable && (
|
||||
<IconButton
|
||||
@ -69,12 +69,11 @@ export function VMSelectIsoInput(p: {
|
||||
}
|
||||
}}
|
||||
options={p.isoList.map((i) => {
|
||||
return {
|
||||
label: `${i.filename} ${filesize(i.size)}`,
|
||||
value: i.filename,
|
||||
};
|
||||
})
|
||||
}
|
||||
return {
|
||||
label: `${i.filename} ${filesize(i.size)}`,
|
||||
value: i.filename,
|
||||
};
|
||||
})}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
|
Reference in New Issue
Block a user