mirror of
https://github.com/kremalicious/umami.git
synced 2025-01-11 13:44:01 +01:00
Add image?.
This commit is contained in:
parent
f90631b3fb
commit
5390370b3d
@ -15,7 +15,7 @@ export function DevicesTable({ websiteId, ...props }) {
|
||||
label={formatMessage(labels[device] || labels.unknown)}
|
||||
>
|
||||
<img
|
||||
src={`${basePath}/images/device/${device.toLowerCase() || 'unknown'}.png`}
|
||||
src={`${basePath}/images/device/${device?.toLowerCase() || 'unknown'}.png`}
|
||||
alt={device}
|
||||
width={16}
|
||||
height={16}
|
||||
|
@ -12,7 +12,7 @@ export function OSTable({ websiteId, ...props }) {
|
||||
<FilterLink id="os" value={os}>
|
||||
<img
|
||||
src={`${basePath}/images/os/${
|
||||
os.toLowerCase().replaceAll(/[^\w]+/g, '-') || 'unknown'
|
||||
os?.toLowerCase().replaceAll(/[^\w]+/g, '-') || 'unknown'
|
||||
}.png`}
|
||||
alt={os}
|
||||
width={16}
|
||||
|
Loading…
Reference in New Issue
Block a user