From 5334881bc327cbb703c20d17ebb5df89003bae53 Mon Sep 17 00:00:00 2001 From: FitseTLT Date: Thu, 21 Mar 2024 23:02:53 +0300 Subject: [PATCH] add nullish checker --- src/libs/OptionsListUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/OptionsListUtils.ts b/src/libs/OptionsListUtils.ts index 0f83b260c8f2..e450a2c6c7f3 100644 --- a/src/libs/OptionsListUtils.ts +++ b/src/libs/OptionsListUtils.ts @@ -895,7 +895,7 @@ function sortCategories(categories: Record): Category[] { if (name) { const categoryObject: Category = { name, - enabled: categories[name].enabled ?? false, + enabled: categories[name]?.enabled ?? false, }; acc.push(categoryObject);