1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-05-12 01:17:04 +02:00

feat: remove warning boxes for empty values (#9830)

We had issues, where when you selected the operator, these boxes were
jumping up. The problem was that the illegal value checker was marking
empty values as illegal also.

Now empty value is not included in illegal values.


![image](https://github.com/user-attachments/assets/13c6b21e-6b7e-40ac-bade-4496e65f10ba)
This commit is contained in:
Jaanus Sellin 2025-04-24 11:41:14 +03:00 committed by GitHub
parent 9911fe89be
commit b05e12d028
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -47,7 +47,9 @@ export const getIllegalValues = (
) => { ) => {
const deletedValuesSet = getLegalValueSet(deletedLegalValues); const deletedValuesSet = getLegalValueSet(deletedLegalValues);
return constraintValues.filter((value) => deletedValuesSet.has(value)); return constraintValues.filter(
(value) => value !== '' && deletedValuesSet.has(value),
);
}; };
const StyledValuesContainer = styled('div')(({ theme }) => ({ const StyledValuesContainer = styled('div')(({ theme }) => ({