mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-26 18:51:50 +02:00
Merge pull request #8166 from overleaf/msm-settings-fix-uni-autocomplete
[Settings] Fix university autocomplete GitOrigin-RevId: ea6b539a25c9363e420a4f04a9522c34d860d4f2
This commit is contained in:
@@ -107,7 +107,13 @@ function InstitutionFields({
|
||||
return []
|
||||
}
|
||||
|
||||
return universities[countryCode]?.map(({ name }) => name) ?? []
|
||||
return (
|
||||
universities[countryCode]
|
||||
?.map(({ name }) => name)
|
||||
.filter(name =>
|
||||
name.trim().toLowerCase().includes(universityName.toLowerCase())
|
||||
) ?? []
|
||||
)
|
||||
}
|
||||
|
||||
const handleShowInstitutionFields = () => {
|
||||
|
||||
Reference in New Issue
Block a user