Make 'group not found' work

pull/21833/head
David Baker 2017-06-26 17:38:10 +01:00
parent 2efa099de2
commit a26498bc6c
1 changed files with 6 additions and 4 deletions

View File

@ -59,7 +59,7 @@ module.exports = React.createClass({
});
}, (err) => {
this.setState({
phase: err.errcode == 404 ? "GroupView.NOT_FOUND" :"GroupView.ERROR",
phase: err.httpStatus == 404 ? "GroupView.NOT_FOUND" :"GroupView.ERROR",
summary: null,
});
});
@ -110,9 +110,11 @@ module.exports = React.createClass({
</div>
);
} else if (this.state.phase == "GroupView.NOT_FOUND") {
<div style={{margin: "auto"}}>
Group {this.props.groupId} not found
</div>
return (
<div style={{margin: "auto"}}>
Group {this.props.groupId} not found
</div>
);
} else {
return (
<div style={{margin: "auto"}}>