Skip to content

Commit

Permalink
fix(react-tinacms-inline): BlocksControls always returns a JSX Element
Browse files Browse the repository at this point in the history
  • Loading branch information
ncphillips committed Aug 10, 2020
1 parent 173a1fb commit 36d84f6
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -74,7 +74,7 @@ export function BlocksControls({
const addAfterPosition = direction === 'horizontal' ? 'right' : 'bottom'

if (cms.disabled) {
return children || null
return <>{children}</>
}

const removeBlock = (event: any) => {
Expand Down

0 comments on commit 36d84f6

Please sign in to comment.