Skip to content

Commit

Permalink
fix(essntl-4735): fix for the tags modal filter (filter case sensitiv…
Browse files Browse the repository at this point in the history
…ity) (#1881)

* fix(essntl-4735): fix for the tags modal filter

* fix(essntl-4735): removing small issues in the code

* fix(essntl-4735): rewrote function

* fix(essntl-4735): removed the regex

---------

Co-authored-by: Georgy Karataev <[email protected]>
  • Loading branch information
Fewwy and gkarat authored Jun 8, 2023
1 parent c1a06ee commit 223a23f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Utilities/TagsModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ const TagsModal = ({
const activeSystemTag = useSelector(({ entities, entityDetails }) => entities?.activeSystemTag || entityDetails?.entity);
const tags = useSelector(({ entities, entityDetails }) => {
const activeTags = entities?.activeSystemTag?.tags || entityDetails?.entity?.tags;

if (activeTags) {
return activeTags?.filter(
(tag) => Object.values(tag).some((val) => val?.includes(filterBy))
(tag) => Object.values(tag).some((val) => val?.toLowerCase().includes(filterBy.toLowerCase()))
).slice(statePagination?.perPage * (statePagination?.page - 1), statePagination?.perPage * statePagination?.page);
}

Expand Down

0 comments on commit 223a23f

Please sign in to comment.