From 4a8b6f72dfc672e72d9283e89ef07bbf3fa76148 Mon Sep 17 00:00:00 2001 From: andrzej Date: Wed, 19 Jun 2024 23:51:55 +0200 Subject: [PATCH] notice that filter doesn't work for nested objects --- src/app/story/columns.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/story/columns.tsx b/src/app/story/columns.tsx index 31c5580..d3b507d 100644 --- a/src/app/story/columns.tsx +++ b/src/app/story/columns.tsx @@ -56,7 +56,9 @@ export const columns: ColumnDef[] = [ const genres = props.getValue() .map(e => {e.name}) return genres - } + }, + filterFn: "arrIncludes" + //TODO - write custom filter function, to account for an array of objects }), { id: "actions",