Bug fix for infinite spinner on system summary

cursedstranger

New Member
Dec 30, 2023
3
2
3
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

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!