From ab4e05be345fdfbf98f4a5d94f825dc8031296cb Mon Sep 17 00:00:00 2001 From: Kanva Bhatia <56185464+KanvaBhatia@users.noreply.github.com> Date: Mon, 6 Jan 2025 04:23:39 +0530 Subject: [PATCH] fixes #4578 - correct the way dim_props created (#4587) --- reflex/components/recharts/charts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reflex/components/recharts/charts.py b/reflex/components/recharts/charts.py index 85e10c2c54..bbe733244f 100644 --- a/reflex/components/recharts/charts.py +++ b/reflex/components/recharts/charts.py @@ -85,8 +85,8 @@ def create(cls, *children, **props) -> Component: cls._ensure_valid_dimension("height", height) dim_props = { - "width": width or "100%", - "height": height or "100%", + "width": width if width is not None else "100%", + "height": height if height is not None else "100%", } # Provide min dimensions so the graph always appears, even if the outer container is zero-size. if width is None: