From a4efb607102b67010752488101f43c4bb66a64e0 Mon Sep 17 00:00:00 2001 From: Lendemor Date: Mon, 25 Nov 2024 19:49:51 +0100 Subject: [PATCH] follow up to #4426 --- reflex/components/plotly/plotly.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reflex/components/plotly/plotly.py b/reflex/components/plotly/plotly.py index f07a743cb5f..2c0dccd3ed7 100644 --- a/reflex/components/plotly/plotly.py +++ b/reflex/components/plotly/plotly.py @@ -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