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 (