summaryrefslogtreecommitdiff
path: root/web-ui
diff options
context:
space:
mode:
authorFolker Bernitt <fbernitt@thoughtworks.com>2015-01-19 15:58:03 +0100
committerFolker Bernitt <fbernitt@thoughtworks.com>2015-01-19 15:58:03 +0100
commit231de022c5b9a165e01007f32de40f33ebb35481 (patch)
tree10cee1e0779c73084eb46bcb2770cda0b254f47a /web-ui
parent93bc35da71c4eeb8e770ea266854b344e959655f (diff)
Issue #234: Fix error with delete button not working on drafts.
Diffstat (limited to 'web-ui')
-rw-r--r--web-ui/app/js/services/model/mail.js2
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) {