fix broken GuideContent demos not rendering because of unexpected useEffect return value

This commit is contained in:
Dominik Biedebach
2022-04-14 00:19:41 +02:00
committed by bdbch
parent a6fd827d31
commit 12305cfa31
3 changed files with 3 additions and 3 deletions

View File

@@ -16,7 +16,7 @@ export default () => {
useEffect(() => {
if (!editor) {
return null
return undefined
}
// Get the initial content …

View File

@@ -16,7 +16,7 @@ export default () => {
useEffect(() => {
if (!editor) {
return null
return undefined
}
// Get the initial content …

View File

@@ -20,7 +20,7 @@ export default () => {
useEffect(() => {
if (!editor) {
return null
return undefined
}
editor.setEditable(editable)