mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-27 10:03:13 +00:00
Merge pull request #8166 from overleaf/msm-settings-fix-uni-autocomplete
[Settings] Fix university autocomplete GitOrigin-RevId: ea6b539a25c9363e420a4f04a9522c34d860d4f2
This commit is contained in:
parent
00fa5b2d96
commit
d4dd17d094
1 changed files with 7 additions and 1 deletions
|
@ -107,7 +107,13 @@ function InstitutionFields({
|
||||||
return []
|
return []
|
||||||
}
|
}
|
||||||
|
|
||||||
return universities[countryCode]?.map(({ name }) => name) ?? []
|
return (
|
||||||
|
universities[countryCode]
|
||||||
|
?.map(({ name }) => name)
|
||||||
|
.filter(name =>
|
||||||
|
name.trim().toLowerCase().includes(universityName.toLowerCase())
|
||||||
|
) ?? []
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleShowInstitutionFields = () => {
|
const handleShowInstitutionFields = () => {
|
||||||
|
|
Loading…
Reference in a new issue