Commit d9169e18 authored by Eric Rosenbaum's avatar Eric Rosenbaum

catch errors

parent 5ba6bb83
......@@ -81,6 +81,7 @@ const StudioImage = ({
accept="image/*"
onChange={e => {
handleUpdate(e.target)
.catch(() => { /* errors are handled in the reducer */ })
.then(dataUrl => setUploadPreview(dataUrl));
e.target.value = '';
setHideValidationMessage(false);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment