fix: format hostinfo in overview correctly
This commit is contained in:
parent
e667e112cb
commit
f464c42802
2 changed files with 2 additions and 2 deletions
|
|
@ -86,7 +86,7 @@ export default function Page() {
|
|||
<thead className="text-gray-500 dark:text-gray-400">
|
||||
<tr className="text-left uppercase text-xs font-bold px-0.5">
|
||||
<th className="pb-2">Name</th>
|
||||
<th className="pb-2">
|
||||
<th className="pb-2 w-1/4">
|
||||
<div className="flex items-center gap-x-1">
|
||||
Addresses
|
||||
{data.magic ? (
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue