Skip to content

Commit

Permalink
follow up to #4426 (#4436)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lendemor authored and masenf committed Nov 25, 2024
1 parent 7129bfb commit cb087ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reflex/components/plotly/plotly.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def _exclude_props(self) -> set[str]:

def _render(self):
tag = super()._render()
figure = self.data.to(dict) if self.data is not None else {}
figure = self.data.to(dict) if self.data is not None else Var.create({})
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
Expand Down

0 comments on commit cb087ac

Please sign in to comment.