Skip to content

Commit

Permalink
fix geometries undefined race condition (#2325)
Browse files Browse the repository at this point in the history
  • Loading branch information
CollinBeczak authored May 7, 2024
1 parent caf6b74 commit b9b4daf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interactions/Task/AsMappableTask.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ export class AsMappableTask {
* FeatureCollection type
*/
normalizedGeometries() {
if (_isArray(this.geometries.features) && !this.geometries.type) {
if (_isArray(this.geometries?.features) && !this.geometries?.type) {
return Object.assign({type: "FeatureCollection"}, this.geometries)
}

Expand Down

0 comments on commit b9b4daf

Please sign in to comment.