From d70e457a949ee82c4c7f916402f73f313164931d Mon Sep 17 00:00:00 2001 From: Alejandro Sanchez Date: Tue, 24 Dec 2024 14:25:33 -0800 Subject: [PATCH] PR feedback --- .../features/mapSideBar/property/MotiInventoryContainer.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/source/frontend/src/features/mapSideBar/property/MotiInventoryContainer.tsx b/source/frontend/src/features/mapSideBar/property/MotiInventoryContainer.tsx index 24a5246c6b..dbaf5cdb4b 100644 --- a/source/frontend/src/features/mapSideBar/property/MotiInventoryContainer.tsx +++ b/source/frontend/src/features/mapSideBar/property/MotiInventoryContainer.tsx @@ -8,6 +8,7 @@ import { useMapStateMachine } from '@/components/common/mapFSM/MapStateMachineCo import { PROPERTY_TYPES, useComposedProperties } from '@/hooks/repositories/useComposedProperties'; import { useQuery } from '@/hooks/use-query'; import { getCancelModalProps, useModalContext } from '@/hooks/useModalContext'; +import { pinParser } from '@/utils'; import MapSideBarLayout from '../layout/MapSideBarLayout'; import SidebarFooter from '../shared/SidebarFooter'; @@ -46,10 +47,7 @@ export const MotiInventoryContainer: React.FunctionComponent< props?.pid === undefined || props?.pid === '' || isNaN(Number(props.pid)) ? undefined : Number(props.pid), - pin: - props?.pin === undefined || props?.pin === '' || isNaN(Number(props.pin)) - ? undefined - : Number(props.pin), + pin: pinParser(props?.pin), latLng: selectedFeatureData?.location ?? undefined, propertyTypes: [ PROPERTY_TYPES.ASSOCIATIONS,