fix typecheck

This commit is contained in:
uinstinct 2025-07-01 00:56:37 +05:30
parent 361cabd43b
commit 2df3f1307f

View file

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