File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
web/frontend/src/generic/select Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change 8888
8989 function printAvailability (metric , cluster ) {
9090 const avail = globalMetrics .find ((gm ) => gm .name === metric)? .availability
91- if (! cluster) {
92- return avail .map ((av ) => av .cluster ).join (' , ' )
93- } else {
94- const subAvail = avail .find ((av ) => av .cluster === cluster)? .subClusters
95- if (subAvail) {
96- return subAvail .join (' , ' )
91+ if (avail) {
92+ if (! cluster) {
93+ return avail .map ((av ) => av .cluster ).join (' , ' )
9794 } else {
98- return ` Not available for ${ cluster} `
95+ const subAvail = avail .find ((av ) => av .cluster === cluster)? .subClusters
96+ if (subAvail) {
97+ return subAvail .join (' , ' )
98+ } else {
99+ return ` Not available for ${ cluster} `
100+ }
99101 }
100102 }
103+ return " "
101104 }
102105
103106 function columnsDragOver (event ) {
You can’t perform that action at this time.
0 commit comments