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(erp): hide empty job step records box (stray line under steps)

sidgaikwadf0128a9ebccd
diff --git a/apps/erp/app/modules/production/ui/Jobs/JobBillOfProcess.tsx b/apps/erp/app/modules/production/ui/Jobs/JobBillOfProcess.tsx
index 5986b4af23..74cdd16f45 100644
--- a/apps/erp/app/modules/production/ui/Jobs/JobBillOfProcess.tsx
+++ b/apps/erp/app/modules/production/ui/Jobs/JobBillOfProcess.tsx
@@ -1764,8 +1764,10 @@ function PreviewStepRecords({ attribute }: { attribute: JobOperationStep }) {
const { formatRelativeTime } = useDateFormatter();
if (
!attribute.jobOperationStepRecord ||
- !Array.isArray(attribute.jobOperationStepRecord)
+ !Array.isArray(attribute.jobOperationStepRecord) ||
+ attribute.jobOperationStepRecord.length === 0
) {
+ // No records yet — don't render the empty bordered box (it shows as a stray line).
return null;
}