Skip to content

Commit

Permalink
Fix issue with linelist pagesize calculation and fixed issue with lin…
Browse files Browse the repository at this point in the history
…elist loading overlay percent calculation.
  • Loading branch information
ericenns committed Mar 23, 2022
1 parent e4cad6a commit e35c409
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const Overlay = styled.div`
class LoadingOverlay extends Component {
render() {
const percentage =
Math.floor(this.props.loading.count / window.PAGE.totalSamples) * 100;
Math.floor((this.props.loading.count / window.PAGE.totalSamples) * 100);
return (
<Overlay>
<Space
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { FIELDS } from "../constants";
function calculatePageSize() {
const MIN = 1000;
const MAX = 5000;
const estimated = window.PAGE.totalSamples / 100;
const estimated = Math.ceil(window.PAGE.totalSamples / 100);
return estimated < MIN ? MIN : estimated > MAX ? MAX : estimated;
}

Expand Down

0 comments on commit e35c409

Please sign in to comment.