Skip to content

Commit

Permalink
TRACK-250: fix First Nation filter on insights page (#2456)
Browse files Browse the repository at this point in the history
  • Loading branch information
tom0827 authored Nov 26, 2024
1 parent fb02d6c commit e57b39c
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,12 @@ const WorkList = () => {
return true;
}

const value: string = row.getValue(id) || "";
// list of First Nations associated with the work
const workIndigenousNations: string[] =
row.original.indigenous_works?.map((work) => work.name) || [];

return filterValues.some((filterValue: string) =>
value.includes(filterValue)
workIndigenousNations.includes(filterValue)
);
},
},
Expand Down

0 comments on commit e57b39c

Please sign in to comment.