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. 
This commit is contained in:
parent
9911fe89be
commit
b05e12d028
@ -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 }) => ({
|
||||||
|
Loading…
Reference in New Issue
Block a user