diff --git a/site/src/components/ActivityFeed.svelte b/site/src/components/ActivityFeed.svelte index 6e47156..0d0bf3e 100644 --- a/site/src/components/ActivityFeed.svelte +++ b/site/src/components/ActivityFeed.svelte @@ -132,10 +132,10 @@ $: if (sport || datePre || query || customFrom || customTo) shown = PAGE_SIZE; // reset pagination on filter change - // When a search query is active, eagerly load all remaining shards so the - // full history is searched (not just the initially-loaded recent year). + // When a search query or any date filter is active, eagerly load all + // remaining shards so results aren't limited to the initially-loaded year. let loadingAllShards = false; - $: if (query.trim() && pendingShards.length > 0 && !loadingAllShards) { + $: if ((query.trim() || dateFrom) && pendingShards.length > 0 && !loadingAllShards) { loadingAllShards = true; (async () => { while (pendingShards.length > 0) {