Skip to content

Commit

Permalink
fix(web): don't show motion part in search result (#7210)
Browse files Browse the repository at this point in the history
fix: don't show motion part in search result
  • Loading branch information
alextran1502 authored Feb 19, 2024
1 parent 529a83c commit 870d517
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions web/src/routes/(user)/search/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions web/src/routes/(user)/search/+page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 870d517

Please sign in to comment.