mirror of
https://github.com/traccar/traccar-web.git
synced 2025-01-07 03:26:42 +08:00
Fix empty address
This commit is contained in:
parent
3d40c76efe
commit
62f6da1f5c
@ -93,6 +93,10 @@ const PositionValue = ({ position, property, attribute }) => {
|
||||
}
|
||||
};
|
||||
|
||||
if (key === 'address') {
|
||||
return <AddressValue latitude={position.latitude} longitude={position.longitude} originalAddress={value} />;
|
||||
}
|
||||
|
||||
if (value === undefined || value === null) {
|
||||
return '';
|
||||
}
|
||||
@ -111,8 +115,6 @@ const PositionValue = ({ position, property, attribute }) => {
|
||||
{!deviceReadonly && <Link component={RouterLink} underline="none" to={`/settings/accumulators/${position.deviceId}`}>⚙</Link>}
|
||||
</>
|
||||
);
|
||||
case 'address':
|
||||
return <AddressValue latitude={position.latitude} longitude={position.longitude} originalAddress={value} />;
|
||||
case 'network':
|
||||
return <Link component={RouterLink} underline="none" to={`/network/${position.id}`}>{t('sharedInfoTitle')}</Link>;
|
||||
case 'geofenceIds':
|
||||
|
Loading…
Reference in New Issue
Block a user