Browse Source

Fix foreach indexing (#1403)

Nikhil Rao 1 year ago
parent
commit
c94b2e4636
1 changed files with 1 additions and 1 deletions
  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