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.

refactor: remove more dependencies from useEffect

Brad Barbin671570eb3982
diff --git a/apps/erp/app/modules/production/ui/Planning/ProductionPlanningTable.tsx b/apps/erp/app/modules/production/ui/Planning/ProductionPlanningTable.tsx
index 38610bde78..5ccf72326c 100644
--- a/apps/erp/app/modules/production/ui/Planning/ProductionPlanningTable.tsx
+++ b/apps/erp/app/modules/production/ui/Planning/ProductionPlanningTable.tsx
@@ -578,7 +578,8 @@ const ProductionPlanningTable = memo(
if (bulkUpdateFetcher.data?.success === true) {
toast.success("Orders submitted");
}
- }, [bulkUpdateFetcher.data]);
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ }, [bulkUpdateFetcher.data?.success]);
const isDisabled =
!permissions.can("create", "production") ||