Skip to content

Commit

Permalink
#107 add not completed loading images of compounds
Browse files Browse the repository at this point in the history
  • Loading branch information
tibor-postek-m2ms committed Mar 10, 2020
1 parent 67d6323 commit a65839b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions js/components/preview/compounds/compoundView.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
Expand Down Expand Up @@ -59,10 +59,7 @@ export const CompoundView = memo(({ height, width, data }) => {
}

return (
<div
onClick={event => dispatch(handleClickOnCompound({ event, data, majorViewStage, setImage }))}
style={current_style}
>
<div onClick={event => dispatch(handleClickOnCompound({ event, data, majorViewStage }))} style={current_style}>
<SVGInline svg={image} />
</div>
);
Expand Down

0 comments on commit a65839b

Please sign in to comment.