Skip to content

Commit b812ab1

Browse files
authored
Merge pull request #2386 from Plant-for-the-Planet-org/hotfix/sampletree-layer-condition
intervention condition added
2 parents d166a52 + a13681b commit b812ab1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/features/projectsV2/ProjectsMap/microComponents/PlantLocations.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ export default function PlantLocations(): React.ReactElement {
220220
/>
221221
{selectedPlantLocation &&
222222
selectedPlantLocation.type !== 'single-tree-registration' &&
223+
(selectedInterventionType === 'multi-tree-registration' || selectedInterventionType === 'enrichment-planting' || selectedInterventionType ==='all' || selectedInterventionType === 'default') &&
223224
viewState.zoom > 14 &&
224225
selectedPlantLocation.sampleInterventions
225226
? selectedPlantLocation.sampleInterventions.map((spl) => {

0 commit comments

Comments
 (0)