Skip to content

Commit

Permalink
when class_name is empty, it should not be rendered as None
Browse files Browse the repository at this point in the history
  • Loading branch information
ElijahAhianyo committed Jul 18, 2024
1 parent e910b3b commit 9bce721
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reflex/components/radix/primitives/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def _render(self) -> Tag:
._render()
.add_props(
**{
"class_name": f"{format.to_title_case(self.tag or '')} {self.class_name}",
"class_name": f"{format.to_title_case(self.tag or '')} {self.class_name or ''}",
}
)
)

0 comments on commit 9bce721

Please sign in to comment.