mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 20:19:22 +03:00
Sieve: use Optional chaining operator
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining
This commit is contained in:
parent
3a1046f215
commit
e1426b484e
6 changed files with 12 additions and 13 deletions
|
|
@ -87,7 +87,7 @@ export class FilterPopupView extends rl.pluginPopupView {
|
|||
folderListOptionsBuilder(
|
||||
[rl.settings.get('SieveAllowFileintoInbox') ? '' : 'INBOX'],
|
||||
[['', '']],
|
||||
item => item ? item.localName() : ''
|
||||
item => item?.localName() || ''
|
||||
)
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ export class SieveScriptPopupView extends rl.pluginPopupView {
|
|||
|
||||
if (iError) {
|
||||
self.saveError(true);
|
||||
self.errorText((data && data.ErrorMessageAdditional) || getNotification(iError));
|
||||
self.errorText(data?.ErrorMessageAdditional || getNotification(iError));
|
||||
} else {
|
||||
script.exists() || scripts.push(script);
|
||||
script.exists(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue