mirror of
https://github.com/immich-app/immich.git
synced 2025-08-11 09:16:31 -04:00
chore(web): remove arbitrary search result limit (#20719)
The search results page can become unstable with large amounts of assets, and has therefore been limited to displaying just 5000 assets. This limit is arbitrary and may be too restrictive.
This commit is contained in:
parent
0121043d7d
commit
89598cf0be
@ -50,7 +50,6 @@
|
||||
import { tick } from 'svelte';
|
||||
import { t } from 'svelte-i18n';
|
||||
|
||||
const MAX_ASSET_COUNT = 5000;
|
||||
let { isViewing: showAssetViewer } = assetViewingStore;
|
||||
const viewport: Viewport = $state({ width: 0, height: 0 });
|
||||
|
||||
@ -149,10 +148,7 @@
|
||||
|
||||
// eslint-disable-next-line svelte/valid-prop-names-in-kit-pages
|
||||
export const loadNextPage = async (force?: boolean) => {
|
||||
if (!nextPage || searchResultAssets.length >= MAX_ASSET_COUNT) {
|
||||
return;
|
||||
}
|
||||
if (isLoading && !force) {
|
||||
if (!nextPage || (isLoading && !force)) {
|
||||
return;
|
||||
}
|
||||
isLoading = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user