Skip to content

Commit

Permalink
fix: type str for visible property of Component (custom visibility)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmikita95 committed Feb 27, 2024
1 parent ee4b454 commit e11654b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/streamsync/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ class Component(BaseModel):
position: int = 0
parentId: Optional[str] = None
handlers: Optional[Dict[str, str]] = None
visible: Optional[bool] = None
visible: Optional[bool | str] = None
binding: Optional[Dict] = None

def to_dict(self) -> Dict:
Expand Down
2 changes: 1 addition & 1 deletion tests/testapp/ui.json
Original file line number Diff line number Diff line change
Expand Up @@ -1988,7 +1988,7 @@
"eventType": "ss-change",
"stateRef": "name"
},
"visible": false
"visible": ""
},
"6e912116-4cc5-4840-96b9-84106bee795d": {
"id": "6e912116-4cc5-4840-96b9-84106bee795d",
Expand Down

0 comments on commit e11654b

Please sign in to comment.