mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +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';
|
let list = [], current, sort = FolderUserStore.sortMode() || 'DATE';
|
||||||
if (sort.includes('FROM')) {
|
if (sort.includes('FROM')) {
|
||||||
MessagelistUserStore.forEach(msg => {
|
MessagelistUserStore.forEach(msg => {
|
||||||
let email = msg.from[0].email;
|
let email = msg.from[0]?.email;
|
||||||
if (!current || email != current.id) {
|
if (!current || email != current.id) {
|
||||||
current = {
|
current = {
|
||||||
id: email,
|
id: email,
|
||||||
label: msg.from[0].toLine(),
|
label: msg.from[0]?.toLine(),
|
||||||
search: 'from=' + email,
|
search: 'from=' + email,
|
||||||
messages: []
|
messages: []
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue