fix: Required check for Conversation filters (#3442)

This commit is contained in:
Fayaz Ahmed 2021-11-23 09:42:47 +05:30 committed by GitHub
parent 0033a35ab8
commit 7f8204a9da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -66,13 +66,10 @@ export default {
$each: {
values: {
required: requiredIf(prop => {
let userInputRequired = true;
if (
prop.filter_operator !== 'is_present' ||
prop.filter_operator !== 'is_not_present'
)
userInputRequired = false;
return userInputRequired;
return !(
prop.filter_operator === 'is_present' ||
prop.filter_operator === 'is_not_present'
);
}),
},
},