From fd3b7cf444a5b7fb3839079a62e28d8132c69972 Mon Sep 17 00:00:00 2001 From: byronigoe Date: Mon, 19 Feb 2024 14:26:20 -0800 Subject: [PATCH] Handle null e.g. in the case of manual bbox --- ui/app/components/aoi/ExportAOI.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/app/components/aoi/ExportAOI.js b/ui/app/components/aoi/ExportAOI.js index 9c3cb0bae..8e4073d3e 100644 --- a/ui/app/components/aoi/ExportAOI.js +++ b/ui/app/components/aoi/ExportAOI.js @@ -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) {