Open nguyentienthanhe150825 opened 2 months ago
When on the 2nd page and applying the brand name filter, the problem arises because the current page position (current page) is not reset to the first page (page 1). When the filter is changed, if still on page 2 (or any page other than page 1), the number of posts matching the filter may be less than the number of posts needed to display that page, resulting in no posts are displayed.
To fix this problem, update the current state in the onFinish function.
When I was on the second page and pressed filter by brand name, an error occurred that the list of posts could not be displayed