diff options
Diffstat (limited to 'webapp/components/error_bar.jsx')
-rw-r--r-- | webapp/components/error_bar.jsx | 7 |
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}); } |