From b99129d346ddbebfbcbabe1bfcfefb4f27f55f7e Mon Sep 17 00:00:00 2001 From: Danilo Znamerovszkij <31888918+danilo-znamerovszkij@users.noreply.github.com> Date: Tue, 14 Oct 2025 00:21:53 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20improve=20type=20checking=20for?= =?UTF-8?q?=20subcategory=20children=20in=20global=20state?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/globalState.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/globalState.ts b/src/utils/globalState.ts index a315eda..2df7f38 100644 --- a/src/utils/globalState.ts +++ b/src/utils/globalState.ts @@ -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,