new homelab, rerender and migrated to homeserver
Some checks are pending
Render and Publish / build-deploy (push) Waiting to run

This commit is contained in:
Andreas Gammelgaard Damsbo 2024-09-09 10:03:51 +02:00
commit ceedc35709
No known key found for this signature in database
29 changed files with 1638 additions and 470 deletions

View file

@ -1275,7 +1275,11 @@ async function fuseSearch(query, fuse, fuseOptions) {
// If we don't have a subfuse and the query is long enough, go ahead
// and create a subfuse to use for subsequent queries
if (now - then > kFuseMaxWait && subSearchFuse === undefined) {
if (
now - then > kFuseMaxWait &&
subSearchFuse === undefined &&
resultsRaw.length < fuseOptions.limit
) {
subSearchTerm = query;
subSearchFuse = new window.Fuse([], kFuseIndexOptions);
resultsRaw.forEach((rr) => {