Commit 97ab82bd authored by =Corey Hulen's avatar =Corey Hulen
Browse files

PLT-7834 Fixing js error when network is disconnected

parent 9557c238
......@@ -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();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment