mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2026-02-11 21:41:46 +01:00
fix empty availability print case
This commit is contained in:
@@ -88,6 +88,7 @@
|
||||
|
||||
function printAvailability(metric, cluster) {
|
||||
const avail = globalMetrics.find((gm) => gm.name === metric)?.availability
|
||||
if (avail) {
|
||||
if (!cluster) {
|
||||
return avail.map((av) => av.cluster).join(', ')
|
||||
} else {
|
||||
@@ -99,6 +100,8 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
function columnsDragOver(event) {
|
||||
event.preventDefault();
|
||||
|
||||
Reference in New Issue
Block a user