Thomas Brandého 5 mēneši atpakaļ
vecāks
revīzija
f490643b25
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      reflex/components/plotly/plotly.py

+ 1 - 1
reflex/components/plotly/plotly.py

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