Skip to content

Commit

Permalink
Prevent the optional chaining from blocking the PR
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Mar 24, 2020
1 parent 45a84dd commit 076224b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ const BlockComponent = forwardRef(
className={ classnames(
className,
props.className,
wrapperProps?.className
wrapperProps && wrapperProps.className
) }
data-block={ clientId }
data-type={ name }
Expand All @@ -213,7 +213,7 @@ const BlockComponent = forwardRef(
onMouseLeave={ isSelected ? onMouseLeave : undefined }
tabIndex="0"
style={ {
...wrapperProps?.style,
...( wrapperProps ? wrapperProps.style : {} ),
...( props.style || {} ),
...animationStyle,
} }
Expand Down

0 comments on commit 076224b

Please sign in to comment.