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 2, 2020
1 parent 662a47f commit a7d521a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions js/components/preview/compounds/compoundList.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,9 @@ export const CompoundList = memo(({ height }) => {
}
useWindow={false}
>
{currentCompounds
.slice(0, compoundsListOffset)
.slice(0, 2)
.map((data, index) => {
return <CompoundView key={index} height={100} width={100} data={data} />;
})}
{currentCompounds.slice(0, compoundsListOffset).map((data, index) => {
return <CompoundView key={index} height={100} width={100} data={data} />;
})}
</InfiniteScroll>
</Box>
</Grid>
Expand Down
2 changes: 1 addition & 1 deletion js/components/preview/compounds/redux/dispatchActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export const loadCompoundImageData = ({ width, height, onCancel, data }) => disp
width,
height,
key,
setImg_data: image => dispatch(updateCurrentCompound({ id: data.index, key: 'image', value: image })),
setImg_data: image => {}, //dispatch(updateCurrentCompound({ id: data.index, key: 'image', value: image })),
url,
cancel: onCancel
});
Expand Down

0 comments on commit a7d521a

Please sign in to comment.