mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-07-22 20:41:40 +02:00
fix undefined if system_view_selectedMetric missing
- defaults to first metric on init - reorder gitignore
This commit is contained in:
@@ -77,6 +77,7 @@
|
||||
for (let sm of systemMetrics) {
|
||||
systemUnits[sm.name] = (sm?.unit?.prefix ? sm.unit.prefix : "") + (sm?.unit?.base ? sm.unit.base : "")
|
||||
}
|
||||
if (!selectedMetric) selectedMetric = systemMetrics[0].name
|
||||
}
|
||||
|
||||
$: loadMetrics($initialized)
|
||||
|
Reference in New Issue
Block a user