From af4ce357aafa06d1a9a5b0ef604246aeaef11e67 Mon Sep 17 00:00:00 2001 From: Khaleel Al-Adhami Date: Fri, 14 Feb 2025 15:06:04 -0800 Subject: [PATCH] default back to {} --- reflex/components/component.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reflex/components/component.py b/reflex/components/component.py index 8453333d4..3cfe5b3ae 100644 --- a/reflex/components/component.py +++ b/reflex/components/component.py @@ -1634,7 +1634,7 @@ class CustomComponent(Component): component_fn = kwargs.get("component_fn") # Set the props. - props_types = typing.get_type_hints(component_fn) + props_types = typing.get_type_hints(component_fn) if component_fn else {} props = {key: value for key, value in kwargs.items() if key in props_types} kwargs = {key: value for key, value in kwargs.items() if key not in props_types}