mirror of
https://github.com/tale/headplane.git
synced 2026-08-12 06:46:51 +00:00
fix: format hostinfo in overview correctly
This commit is contained in:
@@ -16,7 +16,7 @@ export function getOSInfo(host: HostInfo) {
|
||||
const formattedOS = formatOS(OS);
|
||||
|
||||
// Trim in case OSVersion is empty
|
||||
return `${formattedOS} ${OSVersion}`.trim();
|
||||
return `${formattedOS} ${OSVersion ?? ''}`.trim();
|
||||
}
|
||||
|
||||
function formatOS(os?: string) {
|
||||
|
||||
Reference in New Issue
Block a user