mirror of
https://github.com/NovaGM/ModuleBuilder.git
synced 2024-08-15 00:23:33 +00:00
[Index] Add null checking for modules in repo JSON out
This commit is contained in:
parent
1147791ce8
commit
1a2a0e454c
1 changed files with 2 additions and 0 deletions
|
@ -231,6 +231,8 @@ for (const parentRepo of ModuleRepos) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
moduleJson.modules = moduleJson.modules.filter((x) => x !== null);
|
||||||
|
|
||||||
writeFileSync(repoJsonPath, JSON.stringify(moduleJson));
|
writeFileSync(repoJsonPath, JSON.stringify(moduleJson));
|
||||||
|
|
||||||
oldTotalModulesJson = oldTotalModulesJson.concat(moduleJson.modules);
|
oldTotalModulesJson = oldTotalModulesJson.concat(moduleJson.modules);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue