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 Feb 25, 2020
1 parent a8b2c17 commit 8394f8e
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions js/components/preview/compounds/compoundList.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,17 @@ export const CompoundList = memo(({ height }) => {
const currentCompounds = useSelector(state => state.previewReducers.compounds.currentCompounds);
const compoundsListOffset = useSelector(state => getCompoundListOffset(state));

console.log(compoundsListOffset);
console.log(
to_query,
compoundClasses,
currentCompoundClass,
totalCountOfMolecules,
compoundsListOffset,
canLoadMoreCompounds,
querying,
currentVector,
currentCompounds
);

Object.keys(compoundsColors).forEach(item => {
if (!!document.getElementById(item)) {
Expand Down Expand Up @@ -99,7 +109,13 @@ export const CompoundList = memo(({ height }) => {
pageStart={0}
loadMore={() => dispatch(loadNextPageOfCompounds())}
hasMore={canLoadMoreCompounds}
loader={<div className="loader" key={`loader_${0}`} />}
loader={
<div className="loader" key={`loader_${0}`}>
<div className={classes.paddingProgress}>
<CircularProgress />
</div>
</div>
}
useWindow={false}
>
{currentCompounds
Expand Down

0 comments on commit 8394f8e

Please sign in to comment.