[Index] Add null checking for modules in repo JSON out

This commit is contained in:
Ducko 2021-05-23 14:22:57 +01:00 committed by Alyxia Sother
parent 1147791ce8
commit 1a2a0e454c
No known key found for this signature in database
GPG Key ID: 355968D14144B739
1 changed files with 2 additions and 0 deletions

View File

@ -231,6 +231,8 @@ for (const parentRepo of ModuleRepos) {
}
}
moduleJson.modules = moduleJson.modules.filter((x) => x !== null);
writeFileSync(repoJsonPath, JSON.stringify(moduleJson));
oldTotalModulesJson = oldTotalModulesJson.concat(moduleJson.modules);