From a26498bc6c17cfffb0f0bff0cfb69f6b81b785d7 Mon Sep 17 00:00:00 2001 From: David Baker Date: Mon, 26 Jun 2017 17:38:10 +0100 Subject: [PATCH] Make 'group not found' work --- src/components/structures/GroupView.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/structures/GroupView.js b/src/components/structures/GroupView.js index 5c049b93be..94d7f1c422 100644 --- a/src/components/structures/GroupView.js +++ b/src/components/structures/GroupView.js @@ -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({ ); } else if (this.state.phase == "GroupView.NOT_FOUND") { -
- Group {this.props.groupId} not found -
+ return ( +
+ Group {this.props.groupId} not found +
+ ); } else { return (