diff --git a/src/utils/search.ts b/src/utils/search.ts index 6a9eb19d..3f99bc69 100644 --- a/src/utils/search.ts +++ b/src/utils/search.ts @@ -418,7 +418,7 @@ export class Search { const totalChildKeywords = Object.values(this.searchables) .filter((s) => s.isChild) .map((s) => this.keywords[s.schemaName]?.length ?? 0) - .reduce((a, b) => a + b); + .reduce((a, b) => a + b, 0); if (totalChildKeywords > 2_000) { this.set('skipTables', true);