mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
fix(web): don't cache empty search results for people search (#27632)
This commit is contained in:
@@ -70,7 +70,12 @@
|
|||||||
reset();
|
reset();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!force && searchedPeople.length < maximumLengthSearchPeople && searchName.startsWith(searchWord)) {
|
if (
|
||||||
|
!force &&
|
||||||
|
searchedPeople.length > 0 &&
|
||||||
|
searchedPeople.length < maximumLengthSearchPeople &&
|
||||||
|
searchName.startsWith(searchWord)
|
||||||
|
) {
|
||||||
search();
|
search();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user