0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-25 20:33:51 +00:00

Revert "pagination controls update search terms"

This reverts commit 9966e6322d.
This commit is contained in:
Víctor Losada Hernández
2024-05-08 15:51:31 +02:00
parent 22f4dade4f
commit cca0f3b4dc

View File

@@ -118,7 +118,7 @@ const ArchivePage = createClass({
this.setState({ error: `${error.response.status}` });
this.updateStateWithBrews([], 1, 1, 0);
}
console.log("We've come up empty",
console.log('a',
!this.state.brewCollection || this.state.brewCollection.length === 0
);
if (!this.state.brewCollection) {
@@ -254,7 +254,7 @@ const ArchivePage = createClass({
{page > 1 && (
<button
className="previousPage"
onClick={() => this.loadPage(page - 1, true)}
onClick={() => this.loadPage(page - 1, false)}
>
&lt;&lt;
</button>
@@ -263,7 +263,7 @@ const ArchivePage = createClass({
{page < totalPages && (
<button
className="nextPage"
onClick={() => this.loadPage(page + 1, true)}
onClick={() => this.loadPage(page + 1, false)}
>
&gt;&gt;
</button>