diff --git a/openbas-front/src/components/common/queryable/filter/FilterUtils.tsx b/openbas-front/src/components/common/queryable/filter/FilterUtils.tsx index d8464adf3e..b13bcbe0f3 100644 --- a/openbas-front/src/components/common/queryable/filter/FilterUtils.tsx +++ b/openbas-front/src/components/common/queryable/filter/FilterUtils.tsx @@ -91,10 +91,6 @@ export const availableOperators = (propertySchema: PropertySchemaDTO) => { if (propertySchema.schema_property_type.includes('instant')) { return ['gt', 'gte', 'lt', 'lte', 'empty', 'not_empty']; } - // Array - if (propertySchema.schema_property_type_array || propertySchema.schema_property_values) { - return ['contains', 'not_contains', 'empty', 'not_empty']; - } // Enum & not array if (propertySchema.schema_property_values && !propertySchema.schema_property_type_array) { return ['eq']; @@ -103,6 +99,10 @@ export const availableOperators = (propertySchema: PropertySchemaDTO) => { if (propertySchema.schema_property_has_dynamic_value && !propertySchema.schema_property_type_array) { return ['contains', 'not_contains', 'empty', 'not_empty']; } + // Array + if (propertySchema.schema_property_values || propertySchema.schema_property_type_array) { + return ['contains', 'not_contains', 'empty', 'not_empty']; + } return [ 'eq', 'not_eq',