Auto Paging return nextPage when current page is the last page if total records % limit == 0

Description

When i have 16 records in table casandra.
I choose limit = 8,
first request return nextPage is ok
But second request with above returned nextPage, data still return next page(not null). And if i use this for pageState date return empty array.

  • Note: If total records % limit != 0, issue not occur

Environment

None

Pull Requests

None

Assignee

Unassigned

Reporter

Toàn Trương Mạnh

Reviewer

None

Fix versions

None

Labels

None

Components

None

PM Priority

None

Reproduced in

None

Pull Request

None

Priority

Critical