chore: lint
This commit is contained in:
@@ -52,9 +52,9 @@ export const RightSidePanel = ({ pairForEdit }: RightSidePanelProps) => {
|
|||||||
} else {
|
} else {
|
||||||
setErrors(prevErrors => ({ ...prevErrors, [id]: '' }));
|
setErrors(prevErrors => ({ ...prevErrors, [id]: '' }));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleConfirm = (id: number) => {
|
const handleConfirm = (id: number) => {
|
||||||
const label = labels[id]?.trim();
|
const label = labels[id]?.trim();
|
||||||
if (label) {
|
if (label) {
|
||||||
updateBrowserStepLabel(id, label);
|
updateBrowserStepLabel(id, label);
|
||||||
@@ -62,9 +62,9 @@ const handleConfirm = (id: number) => {
|
|||||||
} else {
|
} else {
|
||||||
setErrors(prevErrors => ({ ...prevErrors, [id]: 'Label cannot be empty' }));
|
setErrors(prevErrors => ({ ...prevErrors, [id]: 'Label cannot be empty' }));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleDiscard = (id: number) => {
|
const handleDiscard = (id: number) => {
|
||||||
deleteBrowserStep(id);
|
deleteBrowserStep(id);
|
||||||
setLabels(prevLabels => {
|
setLabels(prevLabels => {
|
||||||
const { [id]: _, ...rest } = prevLabels;
|
const { [id]: _, ...rest } = prevLabels;
|
||||||
@@ -74,7 +74,7 @@ const handleDiscard = (id: number) => {
|
|||||||
const { [id]: _, ...rest } = prevErrors;
|
const { [id]: _, ...rest } = prevErrors;
|
||||||
return rest;
|
return rest;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Paper
|
<Paper
|
||||||
|
|||||||
Reference in New Issue
Block a user