A warehouse view can identify empty bins by filtering numeric quantities. Avoid treating a missing reading as proof of zero stock.
Worked example
// components/EmptyBinLocator.tsx
export default function EmptyBinLocator({
counts = [12, 0, 5, 18],
}: { counts?: number[] } = {}) {
return (
<ul>
{counts.flatMap((n, i) =>
n === 0 ? [<li key={i}>Bin {i + 1} is empty</li>] : [],
)}
</ul>
);
}Implementation notes
One shelf label may identify a location and another an item. Pick stable keys so a move does not cause React to reuse the wrong row.
Try it yourself
Compare an explicitly empty bin with a record missing its quantity.
Open the React example →Editorial date May 21, 2026 · Published December 6, 2026