FieldInfo has no name anymore

This commit is contained in:
Benedikt Bartscher 2024-02-29 00:32:55 +01:00
parent faebd22185
commit 2def8b97e7
No known key found for this signature in database

View File

@ -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.