Skip to content

Commit e56532d

Browse files
authored
Merge pull request #119 from vonZeppelin/master
Fix the validation logic of the Section component's fields
2 parents 8ffcd77 + 706f8ac commit e56532d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

blockkit/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2960,7 +2960,7 @@ def __init__(
29602960
self.accessory(accessory)
29612961
self.expand(expand)
29622962
self.block_id(block_id)
2963-
self._add_validator(OnlyOne("text", "fields"))
2963+
self._add_validator(AtLeastOne("text", "fields"))
29642964

29652965
def text(self, text: str | Text | None) -> Self:
29662966
if isinstance(text, str):

0 commit comments

Comments
 (0)