Skip to content

Commit 3fd1215

Browse files
feat: [UIE-9686] - IAM: fix filtering by entity's type (#13129)
* feat: [UIE-9686] - IAM: fix filtering by entity's type * Added changeset: IAM: filtering by entity type at the Roles table
1 parent a5e1f48 commit 3fd1215

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@linode/manager": Fixed
3+
---
4+
5+
IAM: filtering by entity type at the Roles table ([#13129](https://github.com/linode/manager/pull/13129))

packages/manager/src/features/IAM/Roles/RolesTable/RolesTable.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,7 @@ export const RolesTable = ({ roles = [] }: Props) => {
100100
};
101101

102102
const filteredRows = React.useMemo(() => {
103-
if (!query) return roles;
104-
105-
return getFilteredRows(query, filterableEntityType?.value);
103+
return getFilteredRows(query ?? '', filterableEntityType?.value);
106104
}, [roles, query, filterableEntityType]);
107105

108106
// Get just the list of entity types from this list of roles, to be used in the selection filter

0 commit comments

Comments
 (0)