mirror of
https://github.com/danilo-znamerovszkij/c-atlas.git
synced 2025-12-23 22:17:53 -05:00
🔧 improve type checking for subcategory children in global state
This commit is contained in:
@@ -21,7 +21,7 @@ class GlobalState {
|
||||
for (const mainCategory of baseData) {
|
||||
if (mainCategory.children) {
|
||||
for (const subcategory of mainCategory.children) {
|
||||
if (subcategory.children) {
|
||||
if ('children' in subcategory && subcategory.children) {
|
||||
for (const theory of subcategory.children) {
|
||||
this.theoryMappings.set(theory.name, {
|
||||
name: theory.name,
|
||||
|
||||
Reference in New Issue
Block a user