diff --git a/js/components/preview/compounds/compoundView.js b/js/components/preview/compounds/compoundView.js index 17dad926a..976f862bb 100644 --- a/js/components/preview/compounds/compoundView.js +++ b/js/components/preview/compounds/compoundView.js @@ -25,7 +25,7 @@ export const CompoundView = memo(({ height, width, data }) => { useEffect(() => { let onCancel = () => {}; - dispatch(loadCompoundImageData({ width, height, data, onCancel })).catch(error => { + dispatch(loadCompoundImageData({ width, height, data, onCancel, setImage })).catch(error => { setState(() => { throw error; }); @@ -59,10 +59,7 @@ export const CompoundView = memo(({ height, width, data }) => { } return ( -
dispatch(handleClickOnCompound({ event, data, majorViewStage, setImage }))} - style={current_style} - > +
dispatch(handleClickOnCompound({ event, data, majorViewStage }))} style={current_style}>
);