diff options
author | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-01-19 15:58:03 +0100 |
---|---|---|
committer | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-01-19 15:58:03 +0100 |
commit | 231de022c5b9a165e01007f32de40f33ebb35481 (patch) | |
tree | 10cee1e0779c73084eb46bcb2770cda0b254f47a /web-ui/app/js/services | |
parent | 93bc35da71c4eeb8e770ea266854b344e959655f (diff) |
Issue #234: Fix error with delete button not working on drafts.
Diffstat (limited to 'web-ui/app/js/services')
-rw-r--r-- | web-ui/app/js/services/model/mail.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web-ui/app/js/services/model/mail.js b/web-ui/app/js/services/model/mail.js index 17fb25b0..43ab4b86 100644 --- a/web-ui/app/js/services/model/mail.js +++ b/web-ui/app/js/services/model/mail.js @@ -30,7 +30,7 @@ define(['helpers/contenttype'], } function isInTrash() { - return this.mailbox.toLowerCase() === 'trash'; + return this.mailbox && this.mailbox.toLowerCase() === 'trash'; } function setDraftReplyFor(ident) { |