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 notes if there are no notes

Brad Barbinc3f05452b273
diff --git a/apps/erp/app/modules/production/ui/Jobs/JobEstimatesVsActuals.tsx b/apps/erp/app/modules/production/ui/Jobs/JobEstimatesVsActuals.tsx
index 7ea34949fa..7c347447fa 100644
--- a/apps/erp/app/modules/production/ui/Jobs/JobEstimatesVsActuals.tsx
+++ b/apps/erp/app/modules/production/ui/Jobs/JobEstimatesVsActuals.tsx
@@ -351,7 +351,7 @@ const JobEstimatesVsActuals = ({
<Td className="px-2">{getScrapQuantity(operation)}</Td>
<Td className="px-2">
<HStack spacing={0} className="justify-end">
- {notes && (
+ {notes && notes.length > 0 && (
<Popover>
<PopoverTrigger asChild>
<IconButton
@@ -461,7 +461,7 @@ const JobEstimatesVsActuals = ({
<Td className="px-2" />
<Td className="px-2">
<HStack spacing={0} className="justify-end">
- {notes && (
+ {notes && notes.length > 0 && (
<Popover>
<PopoverTrigger asChild>
<IconButton