Skip to content

The open alternative to Salesforce, designed for AI.

fix: Emails input field stays in errored state (#8243)

Harshit Singhc9fcce65906c
diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/input/components/MultiItemFieldInput.tsx b/packages/twenty-front/src/modules/object-record/record-field/meta-types/input/components/MultiItemFieldInput.tsx
index 7aa56379fdb..0193e75da83 100644
--- a/packages/twenty-front/src/modules/object-record/record-field/meta-types/input/components/MultiItemFieldInput.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/input/components/MultiItemFieldInput.tsx
@@ -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 = () => {