Skip to content

Commit

Permalink
Merge pull request #528 from byronigoe/null-adminName2
Browse files Browse the repository at this point in the history
Handle null e.g. in the case of manual bbox
  • Loading branch information
kshitijrajsharma authored Feb 24, 2024
2 parents ae78d21 + fd3b7cf commit 28f58b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/app/components/aoi/ExportAOI.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export class ExportAOI extends Component {

handleSearch = result => {
var geojson;
if (result.adminName2.startsWith('ISO3')){
if (result.adminName2?.startsWith('ISO3')){
try {
geojson = JSON.parse(JSON.stringify(result.bbox));
} catch (e) {
Expand Down

0 comments on commit 28f58b3

Please sign in to comment.