1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-21 11:35:34 +01:00

[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

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;