Skip to content

Commit

Permalink
Fix check for warning log. (#194)
Browse files Browse the repository at this point in the history
* Fix check for warning log.
  • Loading branch information
rgwozdz authored Feb 10, 2021
1 parent 722391f commit 404331e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## Unreleased
### Fixed
* Warning log for missing geometry filter spatial reference

## [2.2.3] - 01-25-2021
### Changed
* Refactored class break generation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function normalizeGeometryFilterSpatialReference (options = {}) {

const spatialReference = normalizeSpatialReference(geometryEnvelopeSpatialReference || options.inSR)

if (logWarning) console.log('WARNING: geometry filter spatial reference unknown. Defaulting to EPSG:4326.')
if (!spatialReference && logWarning) console.log('WARNING: geometry filter spatial reference unknown. Defaulting to EPSG:4326.')

return spatialReference || { wkid: 4326 }
}
Expand Down

0 comments on commit 404331e

Please sign in to comment.