Fix handling of empty state in SharedState.py

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-03-02 15:20:21 -03:00
commit 8e65ba5f17

View file

@ -35,4 +35,6 @@ class SharedState(CustomComponent):
state = Record(data=state)
else:
state = Record(text=str(state))
elif not state:
state = Record(text="")
return state