Skip to content

Commit c7d895d

Browse files
committed
Issue with result count on limit:all - fixed
1 parent e57d7a0 commit c7d895d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export const calculatePaginationProps = _.memoize((
7171
if (page < 1) {
7272
page = 1;
7373
}
74-
limit = limit || defaultLimit;
74+
limit = isUndefined(limit) !== true ? limit : defaultLimit;
7575

7676
let start = (page - 1) * limit;
7777
let end = start + limit - 1;

0 commit comments

Comments
 (0)