Skip to content

Commit 942ca8f

Browse files
Remove conditional operator in AOI
1 parent b250ff2 commit 942ca8f

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 && result.adminName2.startsWith('ISO3')){
141141
try {
142142
geojson = JSON.parse(JSON.stringify(result.bbox));
143143
} catch (e) {

0 commit comments

Comments
 (0)