[PM-14935] fix: null error when GroupsComponent first loads (#12013)

This commit is contained in:
Thomas Rittson 2024-11-18 14:24:12 +10:00 committed by GitHub
parent be61d5d325
commit ea5f492fd1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -59,6 +59,7 @@ type GroupDetailsRow = {
* with members' names (who are assigned to the group) or collection names (which the group has access to).
*/
const groupsFilter = (filter: string) => {
filter ??= "";
const transformedFilter = filter.trim().toLowerCase();
return (data: GroupDetailsRow) => {
const group = data.details;