Skip to content

Commit d022a5d

Browse files
committed
fix(component): correct component reading for action rows.
1 parent 17a8b09 commit d022a5d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

interactions/models/component.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,10 @@ def __init__(self, **kwargs) -> None:
322322
super().__init__(**kwargs)
323323
self.type = ComponentType.ACTION_ROW
324324
self.components = (
325-
[Component(**component) for component in self.components]
325+
[Component(**component._json) for component in self.components]
326326
if self._json.get("components")
327327
else None
328328
)
329329
self._json.update({"type": self.type.value})
330+
if self._json.get("components"):
331+
self._json["components"] = [component._json for component in self.components]

0 commit comments

Comments
 (0)