Error messages revolving around comment creation appear clientside unless we have a better solution in place

This commit is contained in:
Reed Garmsen
2015-06-15 11:09:57 -07:00
parent c84e091f2a
commit 2048b9567f

View File

@@ -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)
);
},