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:
Thomas
2025-08-06 16:12:52 +01:00
committed by GitHub
parent 0121043d7d
commit 89598cf0be

View File

@@ -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;