1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2024-12-29 15:11:58 +00:00

fix(web): don't show motion part in search result (#7210)

fix: don't show motion part in search result
This commit is contained in:
Alex 2024-02-19 14:56:02 -06:00 committed by GitHub
parent 529a83cc72
commit 870d517ce3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -128,10 +128,10 @@
responses =
payload && 'query' in payload
? await searchSmart({
smartSearchDto: { ...payload, page: Number.parseInt(currentPage), withExif: true },
smartSearchDto: { ...payload, page: Number.parseInt(currentPage), withExif: true, isVisible: true },
})
: await searchMetadata({
metadataSearchDto: { ...payload, page: Number.parseInt(currentPage), withExif: true },
metadataSearchDto: { ...payload, page: Number.parseInt(currentPage), withExif: true, isVisible: true },
});
if (searchResultAssets) {

View file

@ -22,8 +22,8 @@ export const load = (async (data) => {
results =
payload && 'query' in payload
? await searchSmart({ smartSearchDto: { ...payload, withExif: true } })
: await searchMetadata({ metadataSearchDto: { ...payload, withExif: true } });
? await searchSmart({ smartSearchDto: { ...payload, withExif: true, isVisible: true } })
: await searchMetadata({ metadataSearchDto: { ...payload, withExif: true, isVisible: true } });
}
return {