I installed proxmox recently and noticed a minor bug in the javascript for loading the system summary in the latest version.
/usr/share/pve-manager/js/pvemanagerlib.js
line 43269
should read something like:
On my system the regex fails to match, so it attempts to reference the first element of null/undefined and throws an exception. I believe the intended behavior is to assign a value of 'unknown'.
I've updated the code on my system so this is more of a notice to help anyone else that comes across it.
Happy proxmox-ing!
/usr/share/pve-manager/js/pvemanagerlib.js
line 43269
let buildDate = kernel.version.match(/\((.+)\)\s*$/)[1] ?? 'unknown';
should read something like:
let buildDate = kernel.version.match(/\((.+)\)\s*$/)?.[1] ?? 'unknown';
On my system the regex fails to match, so it attempts to reference the first element of null/undefined and throws an exception. I believe the intended behavior is to assign a value of 'unknown'.
I've updated the code on my system so this is more of a notice to help anyone else that comes across it.
Happy proxmox-ing!