mirror of
https://github.com/immich-app/immich.git
synced 2025-01-04 02:46:47 +01: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:
parent
529a83cc72
commit
870d517ce3
2 changed files with 4 additions and 4 deletions
|
@ -128,10 +128,10 @@
|
||||||
responses =
|
responses =
|
||||||
payload && 'query' in payload
|
payload && 'query' in payload
|
||||||
? await searchSmart({
|
? await searchSmart({
|
||||||
smartSearchDto: { ...payload, page: Number.parseInt(currentPage), withExif: true },
|
smartSearchDto: { ...payload, page: Number.parseInt(currentPage), withExif: true, isVisible: true },
|
||||||
})
|
})
|
||||||
: await searchMetadata({
|
: await searchMetadata({
|
||||||
metadataSearchDto: { ...payload, page: Number.parseInt(currentPage), withExif: true },
|
metadataSearchDto: { ...payload, page: Number.parseInt(currentPage), withExif: true, isVisible: true },
|
||||||
});
|
});
|
||||||
|
|
||||||
if (searchResultAssets) {
|
if (searchResultAssets) {
|
||||||
|
|
|
@ -22,8 +22,8 @@ export const load = (async (data) => {
|
||||||
|
|
||||||
results =
|
results =
|
||||||
payload && 'query' in payload
|
payload && 'query' in payload
|
||||||
? await searchSmart({ smartSearchDto: { ...payload, withExif: true } })
|
? await searchSmart({ smartSearchDto: { ...payload, withExif: true, isVisible: true } })
|
||||||
: await searchMetadata({ metadataSearchDto: { ...payload, withExif: true } });
|
: await searchMetadata({ metadataSearchDto: { ...payload, withExif: true, isVisible: true } });
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in a new issue