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:
@ -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 },
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user