From 12305cfa316cc2cd38ab7a79643ad3d629ed8854 Mon Sep 17 00:00:00 2001 From: Dominik Biedebach Date: Thu, 14 Apr 2022 00:19:41 +0200 Subject: [PATCH] fix broken GuideContent demos not rendering because of unexpected useEffect return value --- demos/src/GuideContent/ExportHTML/React/index.jsx | 2 +- demos/src/GuideContent/ExportJSON/React/index.jsx | 2 +- demos/src/GuideContent/ReadOnly/React/index.jsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/demos/src/GuideContent/ExportHTML/React/index.jsx b/demos/src/GuideContent/ExportHTML/React/index.jsx index ed6f333d..30dc671c 100644 --- a/demos/src/GuideContent/ExportHTML/React/index.jsx +++ b/demos/src/GuideContent/ExportHTML/React/index.jsx @@ -16,7 +16,7 @@ export default () => { useEffect(() => { if (!editor) { - return null + return undefined } // Get the initial content … diff --git a/demos/src/GuideContent/ExportJSON/React/index.jsx b/demos/src/GuideContent/ExportJSON/React/index.jsx index b452258f..c8888b39 100644 --- a/demos/src/GuideContent/ExportJSON/React/index.jsx +++ b/demos/src/GuideContent/ExportJSON/React/index.jsx @@ -16,7 +16,7 @@ export default () => { useEffect(() => { if (!editor) { - return null + return undefined } // Get the initial content … diff --git a/demos/src/GuideContent/ReadOnly/React/index.jsx b/demos/src/GuideContent/ReadOnly/React/index.jsx index 3d2dccfc..b5417585 100644 --- a/demos/src/GuideContent/ReadOnly/React/index.jsx +++ b/demos/src/GuideContent/ReadOnly/React/index.jsx @@ -20,7 +20,7 @@ export default () => { useEffect(() => { if (!editor) { - return null + return undefined } editor.setEditable(editable)