From 2df3f1307fc8d3f9830923f85ae507f44e9208df Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Tue, 1 Jul 2025 00:56:37 +0530 Subject: [PATCH] fix typecheck --- core/indexing/CodebaseIndexer.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/core/indexing/CodebaseIndexer.ts b/core/indexing/CodebaseIndexer.ts index f2fabb90c..2706f0c1e 100644 --- a/core/indexing/CodebaseIndexer.ts +++ b/core/indexing/CodebaseIndexer.ts @@ -159,9 +159,11 @@ export class CodebaseIndexer { const indexes: CodebaseIndex[] = []; // not parallelizing to avoid race conditions in sqlite for (const indexType of indexTypesToBuild) { - const index = await indexTypeToIndexerMapping[indexType](); - if (index) { - indexes.push(index); + if (indexType && indexType in indexTypeToIndexerMapping) { + const index = await indexTypeToIndexerMapping[indexType](); + if (index) { + indexes.push(index); + } } }