Skip to content

Commit

Permalink
fix broken GuideContent demos not rendering because of unexpected use…
Browse files Browse the repository at this point in the history
…Effect return value
  • Loading branch information
bdbch committed Apr 13, 2022
1 parent a6fd827 commit 12305cf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion demos/src/GuideContent/ExportHTML/React/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default () => {

useEffect(() => {
if (!editor) {
return null
return undefined
}

// Get the initial content …
Expand Down
2 changes: 1 addition & 1 deletion demos/src/GuideContent/ExportJSON/React/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default () => {

useEffect(() => {
if (!editor) {
return null
return undefined
}

// Get the initial content …
Expand Down
2 changes: 1 addition & 1 deletion demos/src/GuideContent/ReadOnly/React/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default () => {

useEffect(() => {
if (!editor) {
return null
return undefined
}

editor.setEditable(editable)
Expand Down

0 comments on commit 12305cf

Please sign in to comment.