fix: fix Pipeline Step title and color update in board (#2849)

Fixes a bug where editing a pipeline step's title or color in the board changes the column's label to the column's uuid and the color to gray.
This commit is contained in:
Thaïs
2023-12-06 12:06:46 +01:00
committed by GitHub
parent f8ddf7f32c
commit e388d90976
7 changed files with 35 additions and 35 deletions

View File

@ -25,17 +25,18 @@ export const Opportunities = () => {
objectNameSingular: 'pipelineStep',
});
const handleEditColumnTitle = (
boardColumnId: string,
newTitle: string,
newColor: string,
) => {
const handleEditColumnTitle = ({
columnId,
title,
color,
}: {
columnId: string;
title: string;
color: string;
}) => {
updateOnePipelineStep?.({
idToUpdate: boardColumnId,
input: {
name: newTitle,
color: newColor,
},
idToUpdate: columnId,
input: { name: title, color },
});
};