fix: add type to term param in filter-function Command prop

This commit is contained in:
hrynevych.romann 2024-02-08 23:58:45 +02:00
parent aef277bbfe
commit afef9124ac

View File

@ -74,7 +74,7 @@ const selectedValues = computed(() => new Set(props.column?.getFilterValue() as
</PopoverTrigger>
<PopoverContent class="w-[200px] p-0" align="start">
<Command
:filter-function="(list: DataTableFacetedFilter['options'], term) => list.filter(i => i.label.toLowerCase()?.includes(term)) "
:filter-function="(list: DataTableFacetedFilter['options'], term: string) => list.filter(i => i.label.toLowerCase()?.includes(term)) "
>
<CommandInput :placeholder="title" />
<CommandList>