mirror of
https://git.proxmox.com/git/pmg-gui
synced 2025-08-05 16:55:33 +00:00
ClusterAdministration.js - catch undefined value in loadavg renderer
This commit is contained in:
parent
0997c99fd6
commit
d7dd15626c
@ -277,10 +277,13 @@ Ext.define('PMG.ClusterAdministration', {
|
||||
{
|
||||
header: gettext('Load average'),
|
||||
renderer: function(value) {
|
||||
if (Ext.isArray(value)) {
|
||||
return value[0];
|
||||
if (Ext.isDefined(value)) {
|
||||
if (Ext.isArray(value)) {
|
||||
return value[0];
|
||||
}
|
||||
return value.toString();
|
||||
}
|
||||
return value.toString();
|
||||
return '';
|
||||
},
|
||||
dataIndex: 'loadavg'
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user