diff --git a/src/editor/widgets/Autocomplete.jsx b/src/editor/widgets/Autocomplete.jsx index 73e2bc8..96a9195 100644 --- a/src/editor/widgets/Autocomplete.jsx +++ b/src/editor/widgets/Autocomplete.jsx @@ -29,7 +29,7 @@ const Autocomplete = props => { }, []); useEffect(() => { - props.onChange(value); + props.onChange && props.onChange(value); }, [ value ]); const getSuggestions = value => {