Skip to content

Commit

Permalink
fixed - string with different case
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Peixoto committed Jan 13, 2021
1 parent 936659f commit f573cf3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/gorgeous-poems-wash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@backstage/plugin-org': patch
---

Fixed - normalizing strings for comparison when ignoring when one is in low case.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ export const MembersListCard = ({
UserEntity
>).filter(member =>
member?.relations?.some(
r => r.type === RELATION_MEMBER_OF && r.target.name === groupName,
r =>
r.type === RELATION_MEMBER_OF &&
r.target.name.toLowerCase() === groupName.toLowerCase(),
),
);
return groupMembersList;
Expand Down

0 comments on commit f573cf3

Please sign in to comment.