Skip to content

Commit

Permalink
Update CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Aug 5, 2024
1 parent af7048a commit ad19275
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@

## Version History

### v5.4.0

- :rocket: Surface upstream response if no count is present

### v5.3.0

- :bug: If no `esriFeature.geometry` is returned, skip the Feature
Expand Down
4 changes: 3 additions & 1 deletion lib/geometry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ export default class Geometry extends EventEmitter {
if (!res.ok) return this.emit('error', await res.text());

const meta = await res.json();
if (isNaN(meta.count)) this.emit('error', 'Unable to determine feature count');
if (isNaN(meta.count)) {
return this.emit(`error', 'Unable to determine feature count - ${JSON.stringify(meta)}`);
}

const count = meta.count;
let curr = 0;
Expand Down

0 comments on commit ad19275

Please sign in to comment.