Skip to content

Commit

Permalink
Fix incorrect attribute lookup for signal.id and 24 char blockkit lim…
Browse files Browse the repository at this point in the history
…it (#3288)
  • Loading branch information
wssheldon authored Apr 20, 2023
1 parent 2aac041 commit 760ba06
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/dispatch/plugins/dispatch_slack/case/interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,10 @@ def snooze_button_click(
)
subject.id = instance.signal.id

signal = signal_service.get(db_session=db_session, signal_id=subject.signal.id)
signal = signal_service.get(db_session=db_session, signal_id=subject.id)
blocks = [
Context(elements=[MarkdownText(text=f"{signal.name}")]),
Divider(),
title_input(placeholder="A name for your snooze filter."),
description_input(placeholder="Provide a description for your snooze filter."),
entity_select(
Expand All @@ -414,7 +416,7 @@ def snooze_button_click(
]

modal = Modal(
title=f"Snooze Signal - {signal.name}",
title="Snooze Signal",
blocks=blocks,
submit="Preview",
close="Close",
Expand Down

0 comments on commit 760ba06

Please sign in to comment.