Remove unnecessary null check
This commit is contained in:
@@ -182,7 +182,7 @@ export default {
|
|||||||
this.overrideUpdateInterval = 30;
|
this.overrideUpdateInterval = 30;
|
||||||
},
|
},
|
||||||
updated() {
|
updated() {
|
||||||
const load = this?.server?.nextcloud?.system?.cpuload;
|
const load = this.server?.nextcloud?.system?.cpuload;
|
||||||
if (load) this.updateCpuLoad(load);
|
if (load) this.updateCpuLoad(load);
|
||||||
const sys = this.server.nextcloud.system;
|
const sys = this.server.nextcloud.system;
|
||||||
if (sys) this.updateMemoryGauge(sys);
|
if (sys) this.updateMemoryGauge(sys);
|
||||||
|
|||||||
Reference in New Issue
Block a user