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);