File tree Expand file tree Collapse file tree 2 files changed +1
-27
lines changed
Expand file tree Collapse file tree 2 files changed +1
-27
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments