mirror of https://github.com/moparisthebest/mail
set selected to undefined if email is empty
This commit is contained in:
parent
b22b234653
commit
ba807ff80f
|
@ -56,6 +56,7 @@ define(function(require) {
|
|||
|
||||
$scope.select = function(email) {
|
||||
if (!email) {
|
||||
$scope.state.mailList.selected = undefined;
|
||||
return;
|
||||
}
|
||||
// split text only emails into parts for easier rendering
|
||||
|
|
Loading…
Reference in New Issue