fixed bug for showing max number of items .
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user