0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-26 22:32:45 +00:00

503 catch 2

This commit is contained in:
Víctor Losada Hernández
2024-02-15 01:15:00 +01:00
parent 3482d92ab6
commit 46262c56db

View File

@@ -47,9 +47,8 @@ const ArchivePage = createClass({
},
loadPage : async function(page) {
this.updateUrl();
this.updateUrl();
try {
//this.updateUrl();
this.setState({ searching: true, error: null });
const title = encodeURIComponent(this.state.title);
await request.get(`/api/archive?title=${title}&page=${page}`)
@@ -60,7 +59,7 @@ const ArchivePage = createClass({
});
} catch (error) {
console.log(`LoadPage error: ${error}`);
this.setState({ error: {error} });
this.setState({ error: `${error}` });
this.updateStateWithBrews([], 1, 1);
}
},