Skip to content

Commit

Permalink
restore the lost Uncategorized options section
Browse files Browse the repository at this point in the history
  • Loading branch information
AUTOMATIC1111 committed Mar 10, 2024
1 parent edc5620 commit 3e0146f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,9 @@ def dumpjson(self):

item_categories = {}
for item in self.data_labels.values():
if item.section[0] is None:
continue

category = categories.mapping.get(item.category_id)
category = "Uncategorized" if category is None else category.label
if category not in item_categories:
Expand Down

0 comments on commit 3e0146f

Please sign in to comment.