summaryrefslogtreecommitdiffstats
path: root/web/react/components/create_post.jsx
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2016-01-22 08:04:02 -0600
committer=Corey Hulen <corey@hulen.com>2016-01-22 08:04:02 -0600
commit518efd7d2e971572c104dde09f90ef9f7619dd08 (patch)
treecaaeda69687ea5e2156a1a0b5fa4314bb1a49724 /web/react/components/create_post.jsx
parentdd52e3f729a63e4c1001bebbad236258ef880de4 (diff)
downloadchat-518efd7d2e971572c104dde09f90ef9f7619dd08.tar.gz
chat-518efd7d2e971572c104dde09f90ef9f7619dd08.tar.bz2
chat-518efd7d2e971572c104dde09f90ef9f7619dd08.zip
PLT-7 fixing unit test for chunk 2 server
Diffstat (limited to 'web/react/components/create_post.jsx')
-rw-r--r--web/react/components/create_post.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/components/create_post.jsx b/web/react/components/create_post.jsx
index a476863a3..de971c43f 100644
--- a/web/react/components/create_post.jsx
+++ b/web/react/components/create_post.jsx
@@ -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');
}