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: highlight item in parts bom
Sidwebworks64b93926e1b0
diff --git a/apps/erp/app/modules/items/ui/Item/BoMExplorer.tsx b/apps/erp/app/modules/items/ui/Item/BoMExplorer.tsxindex af21c613cf..655c70b3b5 100644--- a/apps/erp/app/modules/items/ui/Item/BoMExplorer.tsx+++ b/apps/erp/app/modules/items/ui/Item/BoMExplorer.tsx@@ -113,6 +113,7 @@ const BoMExplorer = ({if (!itemId) throw new Error("itemId not found");if (!methodId) throw new Error("methodId not found");+ // biome-ignore lint/correctness/useExhaustiveDependencies: methods and selectNode cause re-rendersuseEffect(() => {if (selectedMaterialId) {const node = methods.find(@@ -128,8 +129,16 @@ const BoMExplorer = ({if (node) {selectNode(node.id);}+ } else if (params.methodId) {+ // On initial load at the root manufacturing route, select the root method+ const node = methods.find(+ (m) => m.data.materialMakeMethodId === params.methodId+ );+ if (node) {+ selectNode(node.id);+ }}- }, [selectedMaterialId, params.makeMethodId, methods, selectNode]);+ }, [selectedMaterialId, params.makeMethodId, params.methodId]);const importBomDisclosure = useDisclosure();