Skip to content

Commit add7ced

Browse files
committed
remove that
1 parent 0afbc36 commit add7ced

File tree

2 files changed

+1
-27
lines changed

2 files changed

+1
-27
lines changed

reflex/components/core/foreach.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def render(self):
181181
tag,
182182
iterable_state=str(tag.iterable),
183183
arg_name=tag.arg_var_name,
184-
arg_index=tag.get_index_var_arg(),
184+
arg_index=tag.index_var_name,
185185
)
186186

187187

reflex/components/tags/iter_tag.py

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -68,32 +68,6 @@ def get_arg_var(self) -> Var:
6868
_var_type=self.get_iterable_var_type(),
6969
).guess_type()
7070

71-
def get_index_var_arg(self) -> Var:
72-
"""Get the index var for the tag (without curly braces).
73-
74-
This is used to render the index var in the .map() function.
75-
76-
Returns:
77-
The index var.
78-
"""
79-
return Var(
80-
_js_expr=self.index_var_name,
81-
_var_type=int,
82-
).guess_type()
83-
84-
def get_arg_var_arg(self) -> Var:
85-
"""Get the arg var for the tag (without curly braces).
86-
87-
This is used to render the arg var in the .map() function.
88-
89-
Returns:
90-
The arg var.
91-
"""
92-
return Var(
93-
_js_expr=self.arg_var_name,
94-
_var_type=self.get_iterable_var_type(),
95-
).guess_type()
96-
9771
def render_component(self) -> Component:
9872
"""Render the component.
9973

0 commit comments

Comments
 (0)