Skip to content

Commit

Permalink
fix(inventoryList): issues/403 minHeight update on error (#563)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdcabrera committed Feb 16, 2021
1 parent e1cfeaf commit bbee4f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/inventoryList/inventoryList.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ class InventoryList extends React.Component {
const minHeightContentRefreshKey =
(fulfilled === true && itemCount < updatedPerPage && `bodyMinHeight-${updatedPerPage}-resize`) ||
(fulfilled === true && isLastPage && `bodyMinHeight-${updatedPerPage}-resize`) ||
(error === true && `bodyMinHeight-${updatedPerPage}-resize`) ||
`bodyMinHeight-${updatedPerPage}`;

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ class InventorySubscriptions extends React.Component {
const minHeightContentRefreshKey =
(fulfilled === true && itemCount < updatedPerPage && `bodyMinHeight-${updatedPerPage}-resize`) ||
(fulfilled === true && isLastPage && `bodyMinHeight-${updatedPerPage}-resize`) ||
(error === true && `bodyMinHeight-${updatedPerPage}-resize`) ||
`bodyMinHeight-${updatedPerPage}`;

return (
Expand Down

0 comments on commit bbee4f6

Please sign in to comment.