mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-22 18:56:54 +00:00
test 404 error
This commit is contained in:
1 parent
7626f63beb
commit
fcb4c722c6
1 file changed
+1
-2
@@ -243,7 +243,6 @@ const ArchivePage = createClass({
|
|||||||
|
|
||||||
renderFoundBrews() {
|
renderFoundBrews() {
|
||||||
const { title, brewCollection, page, totalPages, error, searching } = this.state;
|
const { title, brewCollection, page, totalPages, error, searching } = this.state;
|
||||||
console.log(searching === false && !brewCollection);
|
|
||||||
if(searching === false && title === '' && error === null) {return (<div className='foundBrews noBrews'><h3>Whenever you want, just start typing...</h3></div>);}
|
if(searching === false && title === '' && error === null) {return (<div className='foundBrews noBrews'><h3>Whenever you want, just start typing...</h3></div>);}
|
||||||
|
|
||||||
if(searching === false && error === 'Error: Service Unavailable') {
|
if(searching === false && error === 'Error: Service Unavailable') {
|
||||||
@@ -254,7 +253,7 @@ const ArchivePage = createClass({
|
|||||||
</div></div>
|
</div></div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
console.log('404: ', searching === false && (!brewCollection || error === 'Error: Not found'))
|
||||||
if(searching === false && (!brewCollection || error === 'Error: Not found')) {
|
if(searching === false && (!brewCollection || error === 'Error: Not found')) {
|
||||||
return (
|
return (
|
||||||
<div className='foundBrews noBrews'>
|
<div className='foundBrews noBrews'>
|
||||||
|
|||||||
Reference in new issue
Block a user