Skip to content

Commit

Permalink
Reset page to 1 on limit change (#1809)
Browse files Browse the repository at this point in the history
* Fix pagination limit

* Update changelog

Co-authored-by: Dominik Barcikowski <dominik@airnauts.com>
  • Loading branch information
dominikx96 and dominikx96 committed Sep 9, 2021
1 parent 68c20e5 commit 56ff40a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ All notable changes to this project will be documented in this file. The format
- Update textarea character limit ([#1751](https://github.com/bloom-housing/bloom/pull/1751)) (Dominik Barcikowski)
- Update unit availability field ([#1767](https://github.com/bloom-housing/bloom/pull/1767)) (Dominik Barcikowski)
- Update select width ([#1765](https://github.com/bloom-housing/bloom/pull/1765)) (Dominik Barcikowski)
- Reset page to 1 on limit change ([#1809](https://github.com/bloom-housing/bloom/pull/1809)) (Dominik Barcikowski)

### UI Components

Expand Down
1 change: 1 addition & 0 deletions sites/partners/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ export default function ListingsList() {
quantityLabel={t("listings.totalListings")}
setCurrentPage={setCurrentPage}
setItemsPerPage={setItemsPerPage}
onPerPageChange={() => setCurrentPage(1)}
/>
</div>
</div>
Expand Down

0 comments on commit 56ff40a

Please sign in to comment.