Fix handling of empty state in SharedState.py
This commit is contained in:
parent
8ac3f4579e
commit
8e65ba5f17
1 changed files with 2 additions and 0 deletions
|
|
@ -35,4 +35,6 @@ class SharedState(CustomComponent):
|
||||||
state = Record(data=state)
|
state = Record(data=state)
|
||||||
else:
|
else:
|
||||||
state = Record(text=str(state))
|
state = Record(text=str(state))
|
||||||
|
elif not state:
|
||||||
|
state = Record(text="")
|
||||||
return state
|
return state
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue