allow for 'go.Figure | None' annotation in State

This commit is contained in:
Lendemor 2024-11-23 00:04:29 +01:00
parent c29c6b657a
commit 4fa41686f9

View File

@ -255,7 +255,7 @@ const extractPoints = (points) => {
def _render(self):
tag = super()._render()
figure = self.data.to(dict)
figure = self.data.to(dict) if self.data is not None else {}
merge_dicts = [] # Data will be merged and spread from these dict Vars
if self.layout is not None:
# Why is this not a literal dict? Great question... it didn't work