diff --git a/src/libs/OptionsListUtils.ts b/src/libs/OptionsListUtils.ts index 15f4c1acf88a..44449fecd517 100644 --- a/src/libs/OptionsListUtils.ts +++ b/src/libs/OptionsListUtils.ts @@ -1001,7 +1001,7 @@ function getCategoryListSections( } const filteredRecentlyUsedCategories = recentlyUsedCategories - .filter((categoryName) => !selectedOptionNames.includes(categoryName) && categories[categoryName] && categories[categoryName].enabled) + .filter((categoryName) => !selectedOptionNames.includes(categoryName) && categories[categoryName]?.enabled) .map((categoryName) => ({ name: categoryName, enabled: categories[categoryName].enabled ?? false,