0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-08 01:02:51 +00:00

quick fix

This commit is contained in:
Víctor Losada Hernández
2024-01-28 00:26:35 +01:00
parent 9aa5eea8c9
commit 9366284e1d

View File

@@ -41,7 +41,7 @@ const ArchivePage = createClass({
this.setState({ searching: true, error: null }); this.setState({ searching: true, error: null });
request request
.get(`/archive/${this.state.title}`) .get(`/archive/${this.state.title}`)
.then((res) => this.setState({ brewCollection: res.body.simplifiedBrews }, this.setState({ limit: res.body.message}))) .then((res) => this.setState({ brewCollection: res.body.brews }, this.setState({ limit: res.body.message})))
.catch((err) => this.setState({ error: err })) .catch((err) => this.setState({ error: err }))
.finally(() => this.setState({ searching: false })); .finally(() => this.setState({ searching: false }));
}, },