mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Error messages revolving around comment creation appear clientside unless we have a better solution in place
This commit is contained in:
@@ -55,9 +55,15 @@ module.exports = React.createClass({
|
||||
|
||||
}.bind(this),
|
||||
function(err) {
|
||||
var state = {};
|
||||
state.server_error = err.message;
|
||||
|
||||
if (err.message === "Invalid RootId parameter") {
|
||||
if ($('#post_deleted').length > 0) $('#post_deleted').modal('show');
|
||||
}
|
||||
else {
|
||||
this.setState(state);
|
||||
}
|
||||
}.bind(this)
|
||||
);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user