Skip to content
This repository was archived by the owner on Sep 3, 2025. It is now read-only.

Commit 0392f28

Browse files
authored
fixing append elements (#5472)
1 parent f42ce77 commit 0392f28

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

src/dispatch/plugins/dispatch_slack/case/messages.py

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -270,17 +270,19 @@ def create_action_buttons_message(
270270
)
271271
)
272272

273-
elements.append(
274-
Button(
275-
text="💤 Snooze Alert",
276-
action_id=SignalNotificationActions.snooze,
277-
value=button_metadata,
278-
),
279-
Button(
280-
text="👤 User MFA Challenge",
281-
action_id=CaseNotificationActions.user_mfa,
282-
value=button_metadata,
283-
),
273+
elements.extend(
274+
[
275+
Button(
276+
text="💤 Snooze Alert",
277+
action_id=SignalNotificationActions.snooze,
278+
value=button_metadata,
279+
),
280+
Button(
281+
text="👤 User MFA Challenge",
282+
action_id=CaseNotificationActions.user_mfa,
283+
value=button_metadata,
284+
),
285+
]
284286
)
285287

286288
# we create the signal metadata blocks

0 commit comments

Comments
 (0)