Skip to content

Commit

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

* 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 <[email protected]>
  • Loading branch information
Aaron Caldwell and elasticmachine committed Feb 4, 2020
1 parent 9e3aa2a commit aa46ad3
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 aa46ad3

Please sign in to comment.