Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

fix: don't show tracking entity if there is none

Brad Barbin7cdeb6a4ad1a
diff --git a/apps/erp/app/modules/inventory/ui/Inventory/InventoryShelves.tsx b/apps/erp/app/modules/inventory/ui/Inventory/InventoryShelves.tsx
index 435f07dc43..1c33ca9581 100644
--- a/apps/erp/app/modules/inventory/ui/Inventory/InventoryShelves.tsx
+++ b/apps/erp/app/modules/inventory/ui/Inventory/InventoryShelves.tsx
@@ -104,11 +104,13 @@ const InventoryShelves = ({
<span>{item.quantity}</span>
</Td>
<Td>
- <Copy
- icon={<LuQrCode />}
- text={item.trackedEntityId}
- withTextInTooltip
- />
+ {item.trackedEntityId && (
+ <Copy
+ icon={<LuQrCode />}
+ text={item.trackedEntityId}
+ withTextInTooltip
+ />
+ )}
</Td>
</Tr>
))}