🔧 improve type checking for subcategory children in global state

This commit is contained in:
Danilo Znamerovszkij
2025-10-14 00:21:53 +02:00
parent a2120a2038
commit b99129d346

View File

@@ -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,