Skip to content

Commit

Permalink
tslint
Browse files Browse the repository at this point in the history
  • Loading branch information
nreese committed May 26, 2021
1 parent 61c1e56 commit 5e64c2e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ export function createSpatialFilterWithGeometry({
};
}

// Currently no way to create an object with exclude property from index signature
// typescript error for "ignore_unmapped is not assignable to type 'GeoShapeQueryBody'" expected"
// @ts-expect-error
return createMultiGeoFieldFilter(geoFieldNames, meta, createGeoFilter);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import { ToolbarOverlay } from './toolbar_overlay';

function mapStateToProps(state: MapStoreState) {
return {
showToolsControl: getGeoFieldNames(state).length,
showToolsControl: getGeoFieldNames(state).length !== 0,
};
}

const connected = connect(mapStateToProps, null)(ToolbarOverlay);
const connected = connect(mapStateToProps)(ToolbarOverlay);
export { connected as ToolbarOverlay };

0 comments on commit 5e64c2e

Please sign in to comment.