The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Fix teleporting board cards on drag drop (#1613)
brendanlaschkea26c8d660d40
diff --git a/front/src/modules/ui/board/components/EntityBoard.tsx b/front/src/modules/ui/board/components/EntityBoard.tsxindex 6d81cc21873..6fb55e8a1da 100644--- a/front/src/modules/ui/board/components/EntityBoard.tsx+++ b/front/src/modules/ui/board/components/EntityBoard.tsx@@ -72,6 +72,24 @@ export const EntityBoard = ({id: pipelineProgressId,pipelineStageId,},+ optimisticResponse: {+ __typename: 'Mutation',+ updateOnePipelineProgress: {+ __typename: 'PipelineProgress',+ id: pipelineProgressId,+ },+ },+ update: (cache) => {+ cache.modify({+ id: cache.identify({+ id: pipelineProgressId,+ __typename: 'PipelineProgress',+ }),+ fields: {+ pipelineStageId: () => pipelineStageId,+ },+ });+ },refetchQueries: [getOperationName(GET_PIPELINE_PROGRESS) ?? ''],});},