mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-11 00:14:50 +03:00
Bugfix: error undefined msg.from[0]
This commit is contained in:
parent
c14d7bdd46
commit
015dcbdc41
1 changed files with 2 additions and 2 deletions
|
|
@ -162,11 +162,11 @@ export class MailMessageList extends AbstractViewRight {
|
|||
let list = [], current, sort = FolderUserStore.sortMode() || 'DATE';
|
||||
if (sort.includes('FROM')) {
|
||||
MessagelistUserStore.forEach(msg => {
|
||||
let email = msg.from[0].email;
|
||||
let email = msg.from[0]?.email;
|
||||
if (!current || email != current.id) {
|
||||
current = {
|
||||
id: email,
|
||||
label: msg.from[0].toLine(),
|
||||
label: msg.from[0]?.toLine(),
|
||||
search: 'from=' + email,
|
||||
messages: []
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue