Add multiselect for options is in

This commit is contained in:
Mel O'Hagan 2022-07-29 16:09:53 +01:00
parent 2aa7f2b2ff
commit fb3351e99b
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@
{error}
{disabled}
{readonly}
{value}
value={Array.isArray(value) ? value : [value]}
{options}
{placeholder}
{sort}

View File

@ -140,7 +140,7 @@
/>
{:else if ["string", "longform", "number", "formula"].includes(filter.type)}
<Input disabled={filter.noValue} bind:value={filter.value} />
{:else if filter.type === "array"}
{:else if filter.type === "array" || (filter.type === "options" && filter.operator === "oneOf")}
<Multiselect
disabled={filter.noValue}
options={getFieldOptions(filter.field)}