Skip to content

Commit 28f58b3

Browse files
Merge pull request #528 from byronigoe/null-adminName2
Handle null e.g. in the case of manual bbox
2 parents ae78d21 + fd3b7cf commit 28f58b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/app/components/aoi/ExportAOI.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export class ExportAOI extends Component {
137137

138138
handleSearch = result => {
139139
var geojson;
140-
if (result.adminName2.startsWith('ISO3')){
140+
if (result.adminName2?.startsWith('ISO3')){
141141
try {
142142
geojson = JSON.parse(JSON.stringify(result.bbox));
143143
} catch (e) {

0 commit comments

Comments
 (0)