PLT-7 fixing unit test for chunk 2 server

This commit is contained in:
=Corey Hulen
2016-01-22 08:04:02 -06:00
parent dd52e3f729
commit 518efd7d2e
3 changed files with 8 additions and 10 deletions

View File

@@ -129,7 +129,7 @@ export default class CreateComment extends React.Component {
function handlePostError(err) {
let state = {};
if (err.message === 'Invalid RootId parameter') {
if (err.id === 'api.post.create_post.root_id.app_error') {
PostStore.removePendingPost(post.channel_id, post.pending_post_id);
if ($('#post_deleted').length > 0) {

View File

@@ -191,7 +191,7 @@ export default class CreatePost extends React.Component {
(err) => {
const state = {};
if (err.message === 'Invalid RootId parameter') {
if (err.id === 'api.post.create_post.root_id.app_error') {
if ($('#post_deleted').length > 0) {
$('#post_deleted').modal('show');
}