Skip to content

Commit c313c36

Browse files
committed
how about this
1 parent 0990430 commit c313c36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reflex/components/component.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2264,7 +2264,7 @@ def _get_dynamic_imports(self) -> str:
22642264
# https://nextjs.org/docs/pages/building-your-application/optimizing/lazy-loading#with-named-exports
22652265
f".then((mod) => mod.{self.tag})"
22662266
if not self.is_default
2267-
else ".then((mod) => typeof mod.default === 'function' ? mod.default : mod.default.default)"
2267+
else ".then((mod) => mod.default.default ?? mod.default)"
22682268
)
22692269
return (
22702270
f"const {self.alias or self.tag} = ClientSide(() => "

0 commit comments

Comments
 (0)