Skip to content

Commit

Permalink
Handle null value
Browse files Browse the repository at this point in the history
  • Loading branch information
anaximander committed Mar 26, 2024
1 parent fa1a15c commit 92ecfef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/map/LeafletMap.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const LeafletMap = ({ reactTable, setFormIsOpen, setZone }) => {
/>
</LayersControl.BaseLayer>
</LayersControl>
<EsriLeafletGeoSearch providers={{arcgisOnlineProvider: {maxSuggestions: 5, token: process.env.GATSBY_ESRI_TOKEN}}} useMapBounds={false} position="topleft" />
<EsriLeafletGeoSearch providers={{arcgisOnlineProvider: {maxSuggestions: 5, token: process.env.GATSBY_ESRI_TOKEN || ""}}} useMapBounds={false} position="topleft" />
<Layers reactTable={reactTable} setSelected={setSelected} setLatLng={setLatLng} layerStyle={layerStyle} displayOverlays={displayOverlays} />
{selectedAttr ? <ZoningPopup selectedAttr={selectedAttr} latLng={popupLatLng} setFormIsOpen={setFormIsOpen} setZone={setZone} /> : ''}
<ZoomControl position="bottomright" />
Expand Down

0 comments on commit 92ecfef

Please sign in to comment.