Skip to content

Commit

Permalink
PLT-7834 Fixing js error when network is disconnected (mattermost#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyhulen authored and ccbrown committed Oct 9, 2017
1 parent ecf8a4e commit ce07276
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default class FailedPostOptions extends React.Component {
this.submitting = false;
},
(err) => {
if (err.id === 'api.post.create_post.root_id.app_error') {
if (err && err.id && err.id === 'api.post.create_post.root_id.app_error') {
this.showPostDeletedModal();
} else {
this.forceUpdate();
Expand Down

0 comments on commit ce07276

Please sign in to comment.