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: don't insert empty object into procedure content
Brad Barbinb6396ab8b0fc
diff --git a/apps/erp/app/routes/x+/production+/procedures.new.tsx b/apps/erp/app/routes/x+/production+/procedures.new.tsxindex 1bb8d7fa8a..df83fef30e 100644--- a/apps/erp/app/routes/x+/production+/procedures.new.tsx+++ b/apps/erp/app/routes/x+/production+/procedures.new.tsx@@ -36,7 +36,7 @@ export async function action({ request }: ActionFunctionArgs) {let contentJSON;try {- contentJSON = content ? JSON.parse(content) : undefined;+ contentJSON = content ? JSON.parse(content) : {};} catch (e) {return json({},diff --git a/packages/database/supabase/migrations/20250923113520_procedure-content-default.sql b/packages/database/supabase/migrations/20250923113520_procedure-content-default.sqlnew file mode 100644index 0000000000..e69de29bb2