Skip to content

armgit / dashy

Public Imported from GitHub
0

🚀 A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

Remove unnecessary null check

Marcell Fülöpcf25dbce4a10
diff --git a/src/components/Widgets/NextcloudSystem.vue b/src/components/Widgets/NextcloudSystem.vue
index 8df8be16..3b5b1f05 100644
--- a/src/components/Widgets/NextcloudSystem.vue
+++ b/src/components/Widgets/NextcloudSystem.vue
@@ -182,7 +182,7 @@ export default {
this.overrideUpdateInterval = 30;
},
updated() {
- const load = this?.server?.nextcloud?.system?.cpuload;
+ const load = this.server?.nextcloud?.system?.cpuload;
if (load) this.updateCpuLoad(load);
const sys = this.server.nextcloud.system;
if (sys) this.updateMemoryGauge(sys);