diff --git a/src/pages/database/debris.tsx b/src/pages/database/debris.tsx index e954d0c4..13a0bcf8 100644 --- a/src/pages/database/debris.tsx +++ b/src/pages/database/debris.tsx @@ -89,7 +89,6 @@ export default function DebrisPage({ debris }: DebrisPageProps): JSX.Element { field: "costume", title: "Costume", render: (thought) => { - console.log(thought); return (
{thought.costume.map((costume) => ( @@ -128,6 +127,14 @@ export default function DebrisPage({ debris }: DebrisPageProps): JSX.Element {
); }, + customFilterAndSearch: (term, thought) => { + if (term.length === 0) return true; + return thought.costume.some((costume) => + `${costume.character.name.toLowerCase()} ${costume.title.toLowerCase()}`.includes( + term.toLowerCase() + ) + ); + }, }, { field: "rarity",