mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 21:49:21 +03:00
?admin use JavaScript Optional chaining
This commit is contained in:
parent
17fa031064
commit
1a130d0be3
4 changed files with 9 additions and 9 deletions
|
|
@ -57,7 +57,7 @@ export class AdminSettingsAbout /*extends AbstractViewSettings*/ {
|
|||
this.coreChecking(true);
|
||||
Remote.request('AdminUpdateInfo', (iError, data) => {
|
||||
this.coreChecking(false);
|
||||
if (!iError && data && data.Result) {
|
||||
if (!iError && data?.Result) {
|
||||
this.coreReal(true);
|
||||
this.coreUpdatable(!!data.Result.Updatable);
|
||||
this.coreWarning(!!data.Result.Warning);
|
||||
|
|
@ -79,7 +79,7 @@ export class AdminSettingsAbout /*extends AbstractViewSettings*/ {
|
|||
this.coreUpdating(false);
|
||||
this.coreVersion('');
|
||||
this.coreVersionCompare(-2);
|
||||
if (!iError && data && data.Result) {
|
||||
if (!iError && data?.Result) {
|
||||
this.coreReal(true);
|
||||
window.location.reload();
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue