Skip to content

Commit

Permalink
Change filter rule (#5809)
Browse files Browse the repository at this point in the history
Co-authored-by: Piotr Rudnicki <prn@touk.pl>
  • Loading branch information
DeamonDev and Piotr Rudnicki committed Apr 2, 2024
1 parent 4ce5445 commit c3363d6
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -10,7 +10,7 @@ export const filterRules = createFilterRules<ComponentType, ComponentsFiltersMod
return segments.every((segment) => row["name"]?.toLowerCase().includes(segment));
},
GROUP: (row, value) => !value?.length || [].concat(value).some((f) => row["componentGroupName"]?.includes(f)),
CATEGORY: (row, value) => !value?.length || [].concat(value).every((f) => row["categories"]?.includes(f)),
CATEGORY: (row, value) => !value?.length || [].concat(value).some((f) => row["categories"]?.includes(f)),
USAGES: (row, values = []) => {
return [].concat(values).every((value) => {
if (value === 0) {
Expand Down

0 comments on commit c3363d6

Please sign in to comment.