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: fallback in the case of an empty string in the description

Brad Barbin2b5afbad5278
diff --git a/apps/erp/app/modules/items/ui/Item/BoMExplorer.tsx b/apps/erp/app/modules/items/ui/Item/BoMExplorer.tsx
index 6c68939e73..30c3bff942 100644
--- a/apps/erp/app/modules/items/ui/Item/BoMExplorer.tsx
+++ b/apps/erp/app/modules/items/ui/Item/BoMExplorer.tsx
@@ -202,7 +202,7 @@ function NodeText({ node }: { node: FlatTreeItem<Method> }) {
return (
<div className="flex flex-col items-start gap-0">
<span className="text-sm truncate font-medium">
- {node.data.description ?? node.data.itemReadableId}
+ {node.data.description || node.data.itemReadableId}
</span>
</div>
);
diff --git a/apps/erp/app/modules/production/ui/Jobs/JobBoMExplorer.tsx b/apps/erp/app/modules/production/ui/Jobs/JobBoMExplorer.tsx
index 5182f13a68..184531c6aa 100644
--- a/apps/erp/app/modules/production/ui/Jobs/JobBoMExplorer.tsx
+++ b/apps/erp/app/modules/production/ui/Jobs/JobBoMExplorer.tsx
@@ -190,7 +190,7 @@ function NodeText({ node }: { node: FlatTreeItem<JobMethod> }) {
return (
<div className="flex items-center gap-1">
<span className="font-medium text-sm truncate">
- {node.data.description ?? node.data.itemReadableId}
+ {node.data.description || node.data.itemReadableId}
</span>
</div>
);
diff --git a/apps/erp/app/modules/sales/ui/Quotes/QuoteBoMExplorer.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuoteBoMExplorer.tsx
index 04c28dd446..c1dc451c24 100644
--- a/apps/erp/app/modules/sales/ui/Quotes/QuoteBoMExplorer.tsx
+++ b/apps/erp/app/modules/sales/ui/Quotes/QuoteBoMExplorer.tsx
@@ -194,7 +194,7 @@ function NodeText({ node }: { node: FlatTreeItem<QuoteMethod> }) {
return (
<div className="flex items-center gap-1">
<span className="font-medium text-sm truncate">
- {node.data.description ?? node.data.itemReadableId}
+ {node.data.description || node.data.itemReadableId}
</span>
</div>
);