mirror of
https://github.com/lingble/twenty.git
synced 2025-11-02 21:57:56 +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);
|
||||
if (!validateInput) return;
|
||||
|
||||
if (errorData.isValid) {
|
||||
setErrorData(errorData);
|
||||
}
|
||||
setErrorData(
|
||||
errorData.isValid ? errorData : { isValid: true, errorMessage: '' },
|
||||
);
|
||||
};
|
||||
|
||||
const handleAddButtonClick = () => {
|
||||
|
||||
Reference in New Issue
Block a user