mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-06 16:32:40 +00:00
503 catch 2
This commit is contained in:
@@ -47,9 +47,8 @@ const ArchivePage = createClass({
|
|||||||
},
|
},
|
||||||
|
|
||||||
loadPage : async function(page) {
|
loadPage : async function(page) {
|
||||||
this.updateUrl();
|
this.updateUrl();
|
||||||
try {
|
try {
|
||||||
//this.updateUrl();
|
|
||||||
this.setState({ searching: true, error: null });
|
this.setState({ searching: true, error: null });
|
||||||
const title = encodeURIComponent(this.state.title);
|
const title = encodeURIComponent(this.state.title);
|
||||||
await request.get(`/api/archive?title=${title}&page=${page}`)
|
await request.get(`/api/archive?title=${title}&page=${page}`)
|
||||||
@@ -60,7 +59,7 @@ const ArchivePage = createClass({
|
|||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(`LoadPage error: ${error}`);
|
console.log(`LoadPage error: ${error}`);
|
||||||
this.setState({ error: {error} });
|
this.setState({ error: `${error}` });
|
||||||
this.updateStateWithBrews([], 1, 1);
|
this.updateStateWithBrews([], 1, 1);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user