From 62f6da1f5c258c5b2f9e922453ae4d7e1e56c3eb Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 8 Nov 2024 08:51:30 -0800 Subject: [PATCH] Fix empty address --- src/common/components/PositionValue.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/common/components/PositionValue.jsx b/src/common/components/PositionValue.jsx index 5564037c..bcd87649 100644 --- a/src/common/components/PositionValue.jsx +++ b/src/common/components/PositionValue.jsx @@ -93,6 +93,10 @@ const PositionValue = ({ position, property, attribute }) => { } }; + if (key === 'address') { + return ; + } + if (value === undefined || value === null) { return ''; } @@ -111,8 +115,6 @@ const PositionValue = ({ position, property, attribute }) => { {!deviceReadonly && ⚙} ); - case 'address': - return ; case 'network': return {t('sharedInfoTitle')}; case 'geofenceIds':