Skip to content

Commit

Permalink
Uses entity type name in Slack snooze modal (#3995)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvilanova authored and metroid-samus committed Nov 29, 2023
1 parent 47eea0c commit 0b7e4f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dispatch/plugins/dispatch_slack/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ def entity_select(
):
"""Creates an entity select."""
entity_options = [
{"text": str(entity.value), "value": entity.id}
{"text": entity.entity_type.name[:75], "value": entity.id}
for entity in entity_service.get_all_desc_by_signal(
db_session=db_session, signal_id=signal_id
)
Expand Down

0 comments on commit 0b7e4f9

Please sign in to comment.