fixed bug for showing max number of items .

This commit is contained in:
Yoshihiro OKUMURA
2019-05-09 17:44:04 +09:00
parent 4f2271977c
commit 7d8cf53c39
+4 -1
View File
@@ -190,7 +190,10 @@ class DatabaseListItem extends Component<Props, State> {
);
}
const startNum = 1 + this.state.condition.limit * (this.state.condition.page - 1);
const endNum = this.state.condition.limit * this.state.condition.page;
let endNum = this.state.condition.limit * this.state.condition.page;
if (endNum > result.total) {
endNum = result.total;
}
const pageNavi = this.renderPageNavi(result);
let evenodd = 'even';
const items = result.data.map((item: Item) => {