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.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
fix: typecheck
Sidwebworksb09290234773
diff --git a/apps/erp/app/modules/shared/shared.models.ts b/apps/erp/app/modules/shared/shared.models.tsindex 7f5a520a82..c74e24125b 100644--- a/apps/erp/app/modules/shared/shared.models.ts+++ b/apps/erp/app/modules/shared/shared.models.ts@@ -226,7 +226,9 @@ export const operationStepValidator = zdescription: z.string().min(1, { message: "Description is required" })- .transform((val) => {+ // Returns `any`: the tiptap doc is consumed both as a DB Json value and as+ // editor JSONContent, and a narrower type breaks one of the two call sites.+ .transform((val): any => {let parsed: unknown;try {parsed = JSON.parse(val);