Skip to content

Commit 302782b

Browse files
committed
fix dynamic components
1 parent 7cfc132 commit 302782b

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

reflex/components/dynamic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def make_component(component: Component) -> str:
114114
module_code_lines = templates.stateful_components_template(
115115
imports=utils.compile_imports(imports),
116116
memoized_code="\n".join(rendered_components),
117-
).splitlines()[1:]
117+
).splitlines()
118118

119119
# Rewrite imports from `/` to destructure from window
120120
for ix, line in enumerate(module_code_lines[:]):

tests/units/components/core/test_foreach.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
from reflex.components.radix.themes.typography.text import text
1616
from reflex.constants.state import FIELD_MARKER
1717
from reflex.state import BaseState, ComponentState
18-
from reflex.vars.base import Var
1918
from reflex.vars.number import NumberVar
2019
from reflex.vars.sequence import ArrayVar
2120

0 commit comments

Comments
 (0)