Skip to content

Commit

Permalink
fix(eden/space): 修复可能的错误渲染
Browse files Browse the repository at this point in the history
  • Loading branch information
mark9804 committed Nov 15, 2024
1 parent 4ac0177 commit 8b14cb2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const SpaceElement = () => {
<Fragment>
{children.map((child, index) => {
const shouldRenderDivider =
(slots.divider || props.divider) && index > 0;
!!(slots.divider || props.divider) && index > 0;
return (
<Fragment key={child.key ?? `item-${index}`}>
{shouldRenderDivider &&
Expand Down

0 comments on commit 8b14cb2

Please sign in to comment.