diff --git a/packages/builder/src/components/design/settings/controls/FilterEditor/FilterDrawer.svelte b/packages/builder/src/components/design/settings/controls/FilterEditor/FilterDrawer.svelte index 32409844be..cb1038a6db 100644 --- a/packages/builder/src/components/design/settings/controls/FilterEditor/FilterDrawer.svelte +++ b/packages/builder/src/components/design/settings/controls/FilterEditor/FilterDrawer.svelte @@ -308,7 +308,7 @@ bind:value={filter.value} multiselect={getSchema(filter).relationshipType === RelationshipType.MANY_TO_MANY || - filter.operator === OperatorOptions.ContainsAny.value} + filter.operator === OperatorOptions.In.value} disabled={filter.noValue} /> {:else} diff --git a/packages/builder/src/components/design/settings/controls/FilterEditor/FilterUsers.svelte b/packages/builder/src/components/design/settings/controls/FilterEditor/FilterUsers.svelte index a25493fd0a..88383ba170 100644 --- a/packages/builder/src/components/design/settings/controls/FilterEditor/FilterUsers.svelte +++ b/packages/builder/src/components/design/settings/controls/FilterEditor/FilterUsers.svelte @@ -20,25 +20,13 @@ $: options = $fetch.rows - function onChange(e) { - const val = e.detail - if (!val) { - value = val - } else { - value = Array.isArray(val) ? val : [val] - } - } - - $: selectedValue = multiselect || !value ? value : value[0] - $: component = multiselect ? Multiselect : Select option.email} getOptionValue={option => option._id} diff --git a/packages/shared-core/src/filters.ts b/packages/shared-core/src/filters.ts index c851d11079..9f883d8f25 100644 --- a/packages/shared-core/src/filters.ts +++ b/packages/shared-core/src/filters.ts @@ -72,7 +72,8 @@ export const getValidOperatorsForType = ( ops = stringOps.concat([Op.MoreThan, Op.LessThan]) } else if (!isFieldType(type) && type.type === FieldType.BB_REFERENCE) { if (type.multiple) { - ops = [Op.Contains, Op.NotContains, Op.ContainsAny, Op.Empty, Op.NotEmpty] + // Temporally disabled + ops = [] } else { ops = [Op.Equals, Op.NotEquals, Op.Empty, Op.NotEmpty, Op.In] }