Bugfix: sortMode undefined at login

This commit is contained in:
the-djmaze 2024-10-23 00:28:13 +02:00
parent 012c1102f9
commit 4f6783a991

View file

@ -212,7 +212,7 @@ export class MailMessageList extends AbstractViewRight {
}, },
sortText: () => { sortText: () => {
let mode = FolderUserStore.sortMode(), let mode = FolderUserStore.sortMode() || '',
has = w => mode.includes(w), has = w => mode.includes(w),
desc = '' === mode || has('REVERSE'); desc = '' === mode || has('REVERSE');
mode = mode.split(/\s+/); mode = mode.split(/\s+/);