mirror of
https://github.com/lingble/twenty.git
synced 2025-11-15 13:35:07 +00:00
fix: Emails input field stays in errored state (#8243)
## Description - This PR fixes the issue #8235 - Error state resets when error state is removed ## Changes https://github.com/user-attachments/assets/0aeb99fe-56c8-437a-ad2c-97e245a44158
This commit is contained in:
@@ -84,9 +84,9 @@ export const MultiItemFieldInput = <T,>({
|
|||||||
setInputValue(value);
|
setInputValue(value);
|
||||||
if (!validateInput) return;
|
if (!validateInput) return;
|
||||||
|
|
||||||
if (errorData.isValid) {
|
setErrorData(
|
||||||
setErrorData(errorData);
|
errorData.isValid ? errorData : { isValid: true, errorMessage: '' },
|
||||||
}
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleAddButtonClick = () => {
|
const handleAddButtonClick = () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user