Skip to content

Commit

Permalink
Use chaining operator
Browse files Browse the repository at this point in the history
  • Loading branch information
MonilBhavsar committed Feb 8, 2024
1 parent d354156 commit 1e47b6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/OptionsListUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1e47b6f

Please sign in to comment.