Skip to content

Commit fd3b7cf

Browse files
authored
Handle null e.g. in the case of manual bbox
1 parent ae78d21 commit fd3b7cf

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)