Skip to content

Commit

Permalink
[Maps] Set filterByMapBounds to default constant if no arg passed (#5…
Browse files Browse the repository at this point in the history
…5068) (#56767)

* Set filterByMapBounds to default constant if no arg passed

* toggle accidentally refers to props instead of state for filterByBounds. update to state

* Review feedback. Remove extra filterByMapBounds

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
  • Loading branch information
Aaron Caldwell and elasticmachine committed Feb 5, 2020
1 parent 4922867 commit 85037bd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ export class CreateSourceEditor extends Component {
label={i18n.translate('xpack.maps.source.esSearch.extentFilterLabel', {
defaultMessage: `Dynamically filter for data in the visible map area`,
})}
checked={this.props.filterByMapBounds}
checked={this.state.filterByMapBounds}
onChange={this.onFilterByMapBoundsChange}
/>
</EuiFormRow>
Expand Down

0 comments on commit 85037bd

Please sign in to comment.