Skip to content

Commit cb087ac

Browse files
Lendemormasenf
authored andcommitted
follow up to #4426 (#4436)
1 parent 7129bfb commit cb087ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reflex/components/plotly/plotly.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ def _exclude_props(self) -> set[str]:
255255

256256
def _render(self):
257257
tag = super()._render()
258-
figure = self.data.to(dict) if self.data is not None else {}
258+
figure = self.data.to(dict) if self.data is not None else Var.create({})
259259
merge_dicts = [] # Data will be merged and spread from these dict Vars
260260
if self.layout is not None:
261261
# Why is this not a literal dict? Great question... it didn't work

0 commit comments

Comments
 (0)