Make group filter case-insensitive (#32471)

Fixes #32419

Signed-off-by: Stan Silvert <ssilvert@redhat.com>
This commit is contained in:
Stan Silvert 2024-09-02 09:46:31 -04:00 committed by GitHub
parent 058c2717a0
commit 943d5320f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -224,7 +224,10 @@ export const GroupPickerDialog = ({
<DataList aria-label={t("groups")} isCompact> <DataList aria-label={t("groups")} isCompact>
{groups.slice(0, max).map((group: SelectableGroup) => ( {groups.slice(0, max).map((group: SelectableGroup) => (
<Fragment key={group.id}> <Fragment key={group.id}>
{(!isSearching || group.name?.includes(filter)) && ( {(!isSearching ||
group.name
?.toLocaleUpperCase()
.includes(filter.toLocaleUpperCase())) && (
<GroupRow <GroupRow
key={group.id} key={group.id}
group={group} group={group}