notice that filter doesn't work for nested objects

This commit is contained in:
andrzej 2024-06-19 23:51:55 +02:00
parent f662ae8719
commit 588c37e68b
1 changed files with 3 additions and 1 deletions

View File

@ -56,7 +56,9 @@ export const columns: ColumnDef<StoryWithGenres>[] = [
const genres = props.getValue() const genres = props.getValue()
.map(e => <Badge>{e.name}</Badge>) .map(e => <Badge>{e.name}</Badge>)
return genres return genres
} },
filterFn: "arrIncludes"
//TODO - write custom filter function, to account for an array of objects
}), }),
{ {
id: "actions", id: "actions",