Skip to content

Commit

Permalink
Remove conditional operator in AOI
Browse files Browse the repository at this point in the history
  • Loading branch information
kshitijrajsharma committed Apr 25, 2024
1 parent b250ff2 commit 942ca8f
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 && result.adminName2.startsWith('ISO3')){
try {
geojson = JSON.parse(JSON.stringify(result.bbox));
} catch (e) {
Expand Down

0 comments on commit 942ca8f

Please sign in to comment.