fix #5121: ui: node status: avoid invalid array access for certain foreign kernels
with custom build date format, which would prevent the panel from loading. Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
This commit is contained in:
parent
4f0d58394f
commit
4fb7e9e434
@ -109,7 +109,7 @@ Ext.define('PVE.node.StatusView', {
|
||||
return data.kversion;
|
||||
}
|
||||
let kernel = data['current-kernel'];
|
||||
let buildDate = kernel.version.match(/\((.+)\)\s*$/)[1] ?? 'unknown';
|
||||
let buildDate = kernel.version.match(/\((.+)\)\s*$/)?.[1] ?? 'unknown';
|
||||
return `${kernel.sysname} ${kernel.release} (${buildDate})`;
|
||||
},
|
||||
value: '',
|
||||
|
Loading…
x
Reference in New Issue
Block a user