Skip to content

Commit

Permalink
[BUG] Ensure ModalView optional fields allow None defaults (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklambourne authored Aug 17, 2023
1 parent 46c8736 commit 58e5b7c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions slackblocks/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,12 @@ def __init__(
external_id=external_id,
)
self.title = Text.to_text(title, force_plaintext=True, max_length=24)
self.close = Text.to_text(close, force_plaintext=True, max_length=24)
self.submit = Text.to_text(submit, force_plaintext=True, max_length=24)
self.close = Text.to_text(
close, force_plaintext=True, max_length=24, allow_none=True
)
self.submit = Text.to_text(
submit, force_plaintext=True, max_length=24, allow_none=True
)
self.clear_on_close = clear_on_close
self.notify_on_close = notify_on_close
self.submit_disabled = submit_disabled
Expand Down

0 comments on commit 58e5b7c

Please sign in to comment.