瀏覽代碼

forgot to migrate one type_ to annotation

Benedikt Bartscher 1 年之前
父節點
當前提交
78db90d695
共有 1 個文件被更改,包括 1 次插入1 次删除
  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