Skip to content

Commit

Permalink
fixup sorting template option groups
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathansick committed Sep 27, 2024
1 parent bea2531 commit e7d15c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/templatebot/services/templaterepo.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,14 +147,14 @@ async def _generate_menu_options(
for group_name in group_names:
group = grouped_templates[group_name]
options = []
for template in grouped_templates[group]:
for template in group:
option = SlackOptionObject(
text=SlackPlainTextObject(text=template.config["name"]),
value=template.name,
)
options.append(option)
option_group = SlackOptionGroupObject(
label=SlackPlainTextObject(text=group),
label=SlackPlainTextObject(text=group_name),
options=options,
)
option_groups.append(option_group)
Expand Down

0 comments on commit e7d15c7

Please sign in to comment.