FieldInfo has no name anymore
This commit is contained in:
parent
faebd22185
commit
2def8b97e7
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user