Skip to content

Commit

Permalink
add nullish checker
Browse files Browse the repository at this point in the history
  • Loading branch information
FitseTLT committed Mar 21, 2024
1 parent b8a5f49 commit 5334881
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 @@ -895,7 +895,7 @@ function sortCategories(categories: Record<string, Category>): Category[] {
if (name) {
const categoryObject: Category = {
name,
enabled: categories[name].enabled ?? false,
enabled: categories[name]?.enabled ?? false,
};

acc.push(categoryObject);
Expand Down

0 comments on commit 5334881

Please sign in to comment.