Implement case-insensitive comparison for search on provider info page (#26590)

Helps users to find the providers they are searching for without knowing how it is spelled internally.

Fixes #26589

Signed-off-by: Stefan Gries <stefan.gries@codecentric.de>
This commit is contained in:
Stefan Gries 2024-01-31 13:06:28 +01:00 committed by GitHub
parent 4096a2657e
commit e988e4f135
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -22,7 +22,7 @@ export const ProviderInfo = () => {
const providerInfo = useMemo(
() =>
Object.entries(serverInfo.providers || []).filter(([key]) =>
key.includes(filter),
key.toLowerCase().includes(filter.toLowerCase()),
),
[filter],
);