Skip to content

Commit

Permalink
#108 do not reset paging of molecule list on component update (causes…
Browse files Browse the repository at this point in the history
… loader to stuck), removed undefined a attribute
  • Loading branch information
matej-vavrek authored and tibor-postek-m2ms committed Mar 2, 2020
1 parent 0a466aa commit 60c1789
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion js/components/preview/molecule/moleculeList.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ const MoleculeList = memo(

// Reset Infinity scroll
useEffect(() => {
setCurrentPage(0);
// setCurrentPage(0);
}, [object_selection]);

if (isActiveFilter) {
Expand Down
1 change: 0 additions & 1 deletion js/components/preview/molecule/moleculeView.js
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,6 @@ const MoleculeView = memo(({ imageHeight, imageWidth, data }) => {
container
justify="flex-start"
alignItems="flex-end"
a
direction="row"
wrap="nowrap"
className={classes.fullHeight}
Expand Down

0 comments on commit 60c1789

Please sign in to comment.