mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-27 15:52:39 +00:00
if this renders null i don't understand anything
This commit is contained in:
@@ -114,7 +114,9 @@ const ArchivePage = createClass({
|
||||
}
|
||||
});
|
||||
} catch (error) {
|
||||
console.log(`LoadPage error: ${error}`);
|
||||
if (error.response && error.response.status === 503) {
|
||||
console.log('loadPage 503');
|
||||
}
|
||||
this.setState({ error: `${error}` });
|
||||
this.updateStateWithBrews([], 1, 1, 0);
|
||||
}
|
||||
@@ -257,7 +259,7 @@ const ArchivePage = createClass({
|
||||
if(title === '') {return (<div className='foundBrews noBrews'><h3>Whenever you want, just start typing...</h3></div>);}
|
||||
|
||||
if (error) {
|
||||
console.log(error.errorCode);
|
||||
console.log('render Error: ', error);
|
||||
let errorMessage;
|
||||
switch (error.errorCode) {
|
||||
case '404':
|
||||
|
||||
Reference in New Issue
Block a user