summaryrefslogtreecommitdiffstats
path: root/webapp/components/error_bar.jsx
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2016-05-26 04:54:49 -0700
committerJoram Wilander <jwawilander@gmail.com>2016-05-26 07:54:49 -0400
commit7b2538fc6c62175622b46d497c4048a7ccb762d1 (patch)
treed2fa111f9ab1014931bb921445a22a80e69da5a7 /webapp/components/error_bar.jsx
parent510fc33fd94d6a5059083e027faebf1a5ecf2ffa (diff)
downloadchat-7b2538fc6c62175622b46d497c4048a7ccb762d1.tar.gz
chat-7b2538fc6c62175622b46d497c4048a7ccb762d1.tar.bz2
chat-7b2538fc6c62175622b46d497c4048a7ccb762d1.zip
PLT-2952 fixing preview mode error message (#3113)
Diffstat (limited to 'webapp/components/error_bar.jsx')
-rw-r--r--webapp/components/error_bar.jsx7
1 files changed, 6 insertions, 1 deletions
diff --git a/webapp/components/error_bar.jsx b/webapp/components/error_bar.jsx
index a3ed337f1..c13d0dd6a 100644
--- a/webapp/components/error_bar.jsx
+++ b/webapp/components/error_bar.jsx
@@ -58,7 +58,12 @@ export default class ErrorBar extends React.Component {
e.preventDefault();
}
- ErrorStore.clearLastError();
+ if (ErrorStore.getLastError() && ErrorStore.getLastError().email_preview) {
+ ErrorStore.clearPreviewError();
+ } else {
+ ErrorStore.clearLastError();
+ }
+
this.setState({message: null});
}