Skip to content

Commit

Permalink
add check for geoFieldNames
Browse files Browse the repository at this point in the history
  • Loading branch information
nreese committed May 26, 2021
1 parent f3868f1 commit 6311dab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export interface Props {

export class DrawFilterControl extends Component<Props, {}> {
_onDraw = async (e: { features: Feature[] }) => {
if (!e.features.length || !this.props.drawState) {
if (!e.features.length || !this.props.drawState || !this.props.geoFieldNames.length) {
return;
}

Expand Down

0 comments on commit 6311dab

Please sign in to comment.