Skip to content

Commit

Permalink
map sidebar content fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarkowsky committed Nov 13, 2024
1 parent 2578aed commit 5e1284f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions react-app/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ const Router = () => {
hideControls={false}
showClusterPopup
showSideBar
zoomOnScroll={true}
/>
</AuthRouteGuard>
</BaseLayout>
Expand Down
4 changes: 3 additions & 1 deletion react-app/src/components/map/sidebar/MapSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ const MapSidebar = (props: MapSidebarProps) => {
? property.properties.Name.match(/^\d*$/) || property.properties.Name == ''
? property.properties.Address1
: property.properties.Name
: pidFormatter(property.properties.PID) ?? String(property.properties.PIN)
: property.properties.PID != null && property.properties.PID != 0
? pidFormatter(property.properties.PID)
: String(property.properties.PIN)
}
content={[
property.properties.Address1,
Expand Down

0 comments on commit 5e1284f

Please sign in to comment.