Parcourir la source

forgot to migrate one type_ to annotation

Benedikt Bartscher il y a 1 an
Parent
commit
78db90d695
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      reflex/components/component.py

+ 1 - 1
reflex/components/component.py

@@ -277,7 +277,7 @@ class Component(BaseComponent, ABC):
                 field_type = EventChain
             elif key in props:
                 # Set the field type.
-                field_type = fields[key].type_
+                field_type = fields[key].annotation
 
             else:
                 continue