mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-06 17:29:03 +00:00
Fallback to Item.row when converting to Modal component list
Fix #10397
This commit is contained in:
1 parent
3ab09be13c
commit
a7d42b9906
1 file changed
+1
-1
+1
-1
@@ -223,7 +223,7 @@ class Modal(BaseView):
|
||||
|
||||
def to_components(self) -> List[Dict[str, Any]]:
|
||||
def key(item: Item) -> int:
|
||||
return item._rendered_row or 0
|
||||
return item._rendered_row or item.row or 0
|
||||
|
||||
children = sorted(self._children, key=key)
|
||||
components: List[Dict[str, Any]] = []
|
||||
|
||||
Reference in new issue
Block a user