Skip to content

Commit 608e226

Browse files
committed
removed conditional for resetting boundary
1 parent 24b0766 commit 608e226

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

components/Map/Map.jsx

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -475,29 +475,7 @@ class Map extends React.Component {
475475
for (let i = 0; i < features.length; i += 1) {
476476
const feature = features[i];
477477

478-
if (
479-
!isEmpty(this.props.selectedNcId) &&
480-
!isEmpty(feature.properties.NC_ID) &&
481-
this.props.selectedNcId !== feature.properties.NC_ID
482-
) {
483-
// Since click is for another district
484-
485-
// Reset boundaries selection
486-
this.resetBoundaries();
487-
488-
// Collapse boundaries section
489-
dispatchCloseBoundaries();
490-
491-
// Reset Address Search input field
492-
this.resetAddressSearch();
493-
494-
// Reset Map.
495-
this.reset();
496-
497-
return;
498-
}
499-
500-
if (hoverables.includes(feature.layer.id) && !feature.state.selected) {
478+
if (hoverables.includes(feature.layer.id)) {
501479
switch (feature.layer.id) {
502480
case 'nc-fills':
503481
this.setState({ address: null });

0 commit comments

Comments
 (0)