Null check.

This commit is contained in:
Mike Cao 2024-03-27 20:49:48 -07:00
parent a933f5b4a0
commit 538fb49219
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ export function OSTable(props: MetricsTableProps) {
<FilterLink id="os" value={os} label={formatOS(os)}>
<img
src={`${process.env.basePath || ''}/images/os/${
os?.toLowerCase().replaceAll(/\W/g, '-') || 'unknown'
os?.toLowerCase()?.replaceAll(/\W/g, '-') || 'unknown'
}.png`}
alt={os}
width={16}