This commit is contained in:
Lachlan Kermode
2020-04-20 17:43:33 +02:00
parent d676878ab6
commit 7973d5c1f3
4 changed files with 26 additions and 28 deletions

View File

@@ -110,11 +110,11 @@ function MapEvents ({ getCategoryColor, categories, projectPoint, styleLocation,
}
const customStyles = styleLocation ? styleLocation(location) : null
const extraRender = () => (
<React.Fragment>
{customStyles[1]}
</React.Fragment>
)
const extraRender = () => (
<React.Fragment>
{customStyles[1]}
</React.Fragment>
)
const isSelected = selected.reduce((acc, event) => {
return acc || (event.latitude === location.latitude && event.longitude === location.longitude)