Skip to content

Commit

Permalink
Fixed popup when advanced filter applied
Browse files Browse the repository at this point in the history
  • Loading branch information
razvanMiu committed Sep 22, 2020
1 parent 4f95ef2 commit 8f661c5
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1063,15 +1063,19 @@ const OpenlayersMapView = (props) => {
{state.popup.element && (
<>
<div className="popover-header">
{currentMapZoom && currentMapZoom > zoomSwitch ? (
{state.popup.properties.siteName ? (
<Header as="h3">{state.popup.properties.siteName}</Header>
) : (
) : state.popup.properties.NUTS_NAME &&
state.popup.properties.CNTR_CODE &&
state.popup.properties.COUNTRY ? (
<Header as="h3">{`${state.popup.properties.NUTS_NAME}, ${state.popup.properties.CNTR_CODE}, ${state.popup.properties.COUNTRY}`}</Header>
) : (
''
)}
</div>
<div className="popover-body">
<Grid.Column stretched>
{currentMapZoom && currentMapZoom > zoomSwitch ? (
{!state.popup.properties.num_sites ? (
''
) : (
<Grid.Row>
Expand Down

0 comments on commit 8f661c5

Please sign in to comment.