File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -366,11 +366,9 @@ def is_persistent(self) -> bool:
366
366
367
367
def refresh_component (self , component : ActionRowComponent ) -> None :
368
368
self ._underlying = component
369
- i = 0
370
- for y in component .components :
369
+ for i , y in enumerate (component .components ):
371
370
x = self .children [i ]
372
371
x .refresh_component (y )
373
- i += 1
374
372
375
373
def disable_all_items (self , * , exclusions : list [ViewItem ] | None = None ) -> Self :
376
374
"""
@@ -412,7 +410,7 @@ def walk_items(self) -> Iterator[ViewItem]:
412
410
yield from self .children
413
411
414
412
def to_component_dict (self ) -> ActionRowPayload :
415
- self ._set_components (self .items )
413
+ self ._set_components (self .children )
416
414
return super ().to_component_dict ()
417
415
418
416
@classmethod
You can’t perform that action at this time.
0 commit comments