mirror of
https://github.com/moparisthebest/mail
synced 2024-11-22 08:52:15 -05:00
Prevent selection of unloaded message
This commit is contained in:
parent
b752269c68
commit
d67e0531d5
@ -32,6 +32,10 @@ var MailListCtrl = function($scope, $timeout, $location, $filter, $q, status, no
|
|||||||
* Set the route to a message which will go to read mode
|
* Set the route to a message which will go to read mode
|
||||||
*/
|
*/
|
||||||
$scope.navigate = function(message) {
|
$scope.navigate = function(message) {
|
||||||
|
if (!message || !message.from) {
|
||||||
|
// early return if message has not finished loading yet
|
||||||
|
return;
|
||||||
|
}
|
||||||
$location.search('uid', message.uid);
|
$location.search('uid', message.uid);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user