From d4ab1aedb44e3873fed5fbda64c6ee83ddc1d2cf Mon Sep 17 00:00:00 2001 From: Rainer Simon Date: Fri, 11 Sep 2020 14:22:53 +0200 Subject: [PATCH] Cleanup --- src/editor/Editor.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/editor/Editor.jsx b/src/editor/Editor.jsx index b65e02a..c8cbf8b 100644 --- a/src/editor/Editor.jsx +++ b/src/editor/Editor.jsx @@ -19,8 +19,6 @@ const bounds = elem => { * with CTRL+Z. */ const Editor = props => { - - const widgets = props.widgets.map(fn => ); // The current state of the edited annotation vs. original const [ currentAnnotation, setCurrentAnnotation ] = useState(); @@ -141,6 +139,8 @@ const Editor = props => { } }; + const widgets = props.widget ? props.widgets.map(fn => ) : []; + return (