Browse Source

Fix foreach indexing (#1403)

Nikhil Rao 1 năm trước cách đây
mục cha
commit
c94b2e4636
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      reflex/components/tags/iter_tag.py

+ 1 - 1
reflex/components/tags/iter_tag.py

@@ -33,7 +33,6 @@ class IterTag(Tag):
         return BaseVar(
             name=INDEX_VAR,
             type_=int,
-            is_local=True,
         )
 
     @staticmethod
@@ -46,6 +45,7 @@ class IterTag(Tag):
         return BaseVar(
             name=INDEX_VAR,
             type_=int,
+            is_local=True,
         )
 
     @staticmethod