Skip to content

Commit

Permalink
Fix conditional box logic
Browse files Browse the repository at this point in the history
  • Loading branch information
colebemis committed Apr 19, 2023
1 parent dc94533 commit 2898d5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ActionList/Item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ export const Item = React.forwardRef<HTMLLIElement, ActionListItemProps>(
>
<ConditionalBox if={Boolean(slots.trailingVisual)} sx={{display: 'flex', flexGrow: 1}}>
<ConditionalBox
if={slots.description?.props.variant !== 'block'}
if={!!slots.description && slots.description.props.variant !== 'block'}
sx={{display: 'flex', flexGrow: 1, alignItems: 'baseline', minWidth: 0}}
>
<Box
Expand Down

0 comments on commit 2898d5d

Please sign in to comment.