fix broken GuideContent demos not rendering because of unexpected useEffect return value
This commit is contained in:
@@ -16,7 +16,7 @@ export default () => {
|
||||
|
||||
useEffect(() => {
|
||||
if (!editor) {
|
||||
return null
|
||||
return undefined
|
||||
}
|
||||
|
||||
// Get the initial content …
|
||||
|
||||
@@ -16,7 +16,7 @@ export default () => {
|
||||
|
||||
useEffect(() => {
|
||||
if (!editor) {
|
||||
return null
|
||||
return undefined
|
||||
}
|
||||
|
||||
// Get the initial content …
|
||||
|
||||
@@ -20,7 +20,7 @@ export default () => {
|
||||
|
||||
useEffect(() => {
|
||||
if (!editor) {
|
||||
return null
|
||||
return undefined
|
||||
}
|
||||
|
||||
editor.setEditable(editable)
|
||||
|
||||
Reference in New Issue
Block a user