mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-27 23:15:15 +08:00
fix broken GuideContent demos not rendering because of unexpected useEffect return value
This commit is contained in:
parent
a6fd827d31
commit
12305cfa31
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user