The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Fix pipeline performance issue (#1070)
Charles Bochet207d7b6b100e
diff --git a/front/src/modules/companies/components/HooksCompanyBoard.tsx b/front/src/modules/companies/components/HooksCompanyBoard.tsxindex 8acb76005d1..58ca791c630 100644--- a/front/src/modules/companies/components/HooksCompanyBoard.tsx+++ b/front/src/modules/companies/components/HooksCompanyBoard.tsx@@ -162,10 +162,16 @@ export function HooksCompanyBoard({);const synchronizeCompanyProgresses = useRecoilCallback(- ({ set }) =>+ ({ snapshot, set }) =>(companyBoardIndex: { [key: string]: CompanyProgress }) => {Object.entries(companyBoardIndex).forEach(([id, companyProgress]) => {- set(companyProgressesFamilyState(id), companyProgress);+ if (+ JSON.stringify(+ snapshot.getLoadable(companyProgressesFamilyState(id)).getValue(),+ ) !== JSON.stringify(companyProgress)+ ) {+ set(companyProgressesFamilyState(id), companyProgress);+ }});},[],