diff --git a/src/components/organisms/RightSidePanel.tsx b/src/components/organisms/RightSidePanel.tsx index ef18b621..d4152fea 100644 --- a/src/components/organisms/RightSidePanel.tsx +++ b/src/components/organisms/RightSidePanel.tsx @@ -121,14 +121,14 @@ export const RightSidePanel: React.FC = ({ onFinishCapture }; const handlePairDelete = () => { - // deletePair(index - 1).then((updatedWorkflow) => { - // updateWorkflow(updatedWorkflow); - // }).catch((error) => { - // console.error(error); - // }); - // }; - console.log("handlePairDelete") - } + // deletePair(index - 1).then((updatedWorkflow) => { + // updateWorkflow(updatedWorkflow); + // }).catch((error) => { + // console.error(error); + // }); + // }; + console.log("handlePairDelete") + } const handleTextLabelChange = (id: number, label: string, listId?: number, fieldKey?: string) => { if (listId !== undefined && fieldKey !== undefined) { @@ -465,20 +465,20 @@ export const RightSidePanel: React.FC = ({ onFinishCapture { step.type === 'text' && ( <> - {confirmedTextSteps[step.id] && hoverStates[step.id] && ( - handlePairDelete()} - sx={{ - position: 'absolute', - top: 5, - right: 5, - color: 'red', - p: 0 - }} - > - - - )} + {confirmedTextSteps[step.id] && hoverStates[step.id] && ( + handlePairDelete()} + sx={{ + position: 'absolute', + top: 5, + right: 5, + color: 'red', + p: 0 + }} + > + + + )} = ({ onFinishCapture ), endAdornment: confirmedTextSteps[step.id] && hoverStates[step.id] && ( - handlePairDelete()} sx={{ cursor: 'pointer', color: 'red' }} />