Skip to content

Commit 3573d52

Browse files
authored
Merge pull request #18 from fastruby/prevent-duplicate-external-id
2 parents 447e130 + 94d0bb8 commit 3573d52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/lib/slack_client/views/puzzle_form.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def create
2727
end
2828
end
2929

30-
Slack::BlockKit.modal blocks: blocks, external_id: "puzzle_form", title: "Suggest a Puzzle" do |modal|
30+
Slack::BlockKit.modal blocks: blocks, external_id: "puzzle_form__#{SecureRandom.hex(6)}", title: "Suggest a Puzzle" do |modal|
3131
modal.submit text: "Submit"
3232
modal.close text: "Close"
3333
end.as_json

0 commit comments

Comments
 (0)