Change filters

This commit is contained in:
Adria Navarro 2023-10-03 13:19:28 +02:00
parent f7e92992a8
commit 4577ba8239
1 changed files with 9 additions and 1 deletions

View File

@ -61,7 +61,15 @@ export const getValidOperatorsForType = (
} else if (type === FieldType.FORMULA) {
ops = stringOps.concat([Op.MoreThan, Op.LessThan])
} else if (type === FieldType.BB_REFERENCE) {
ops = [Op.Equals, Op.NotEquals, Op.Empty, Op.NotEmpty, Op.In]
ops = [
Op.Equals,
Op.NotEquals,
Op.Empty,
Op.NotEmpty,
Op.Contains,
Op.NotContains,
Op.ContainsAny,
]
}
// Only allow equal/not equal for _id in SQL tables