diff --git a/front/src/modules/ui/board/components/EntityBoard.tsx b/front/src/modules/ui/board/components/EntityBoard.tsx index 6d81cc218..6fb55e8a1 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) ?? ''], }); },