diff --git a/ui/src/flows/gather/transfer/target.tsx b/ui/src/flows/gather/transfer/target.tsx index 5c2201f1..fdc6e866 100644 --- a/ui/src/flows/gather/transfer/target.tsx +++ b/ui/src/flows/gather/transfer/target.tsx @@ -42,7 +42,9 @@ export const Target: React.FunctionComponent = () => { } // if no bin then this disk isn't elegible as a target - const elegible = disks.filter((disk) => plan.vdisks[disk.path].bin); + const elegible = disks.filter( + (disk) => plan.vdisks[disk.path].bin && plan.vdisks[disk.path].bin.items, + ); // sort elegible disks by least amount of data transfer const targets = elegible.sort((a, b) => { diff --git a/ui/src/shared/bin/bin.tsx b/ui/src/shared/bin/bin.tsx index 0014ea4b..380ac6b6 100644 --- a/ui/src/shared/bin/bin.tsx +++ b/ui/src/shared/bin/bin.tsx @@ -26,7 +26,7 @@ export const Bin: React.FunctionComponent = ({ disk = '' }) => { const bin = plan.vdisks[disk].bin; - if (!bin) { + if (!bin || !bin.items) { return (