Browse Source

FieldInfo has no name anymore

Benedikt Bartscher 1 year ago
parent
commit
2def8b97e7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      reflex/components/component.py

+ 2 - 2
reflex/components/component.py

@@ -211,9 +211,9 @@ class Component(BaseComponent, ABC):
         props = cls.get_props()
 
         # Convert fields to props, setting default values.
-        for field in cls.get_fields().values():
+        for field_name, field in cls.get_fields().items():
             # If the field is not a component prop, skip it.
-            if field.name not in props:
+            if field_name not in props:
                 continue
 
             # Set default values for any props.