@@ -129,7 +129,7 @@ export class ExportForm extends Component {
129
129
}
130
130
131
131
async fetchData ( geometry ) {
132
- const url = "https://api-prod.raw-data.hotosm.org/ v1/stats/polygon/";
132
+ const url = window . RAW_DATA_API_URL + " v1/stats/polygon/";
133
133
try {
134
134
const response = await axios . post ( url , {
135
135
geometry : geometry
@@ -155,7 +155,7 @@ export class ExportForm extends Component {
155
155
156
156
renderFetchedInfo ( ) {
157
157
const { fetchedInfo } = this . state ;
158
-
158
+ if ( ! this . props . formValues . the_geom ) return null ;
159
159
if ( ! fetchedInfo ) return null ;
160
160
161
161
// Function to trigger the download of the raw data as a JSON file
@@ -172,7 +172,7 @@ export class ExportForm extends Component {
172
172
} ;
173
173
174
174
return (
175
- < Panel style = { { marginTop : "5px " } } >
175
+ < Panel style = { { marginTop : "10px " } } >
176
176
< div >
177
177
< div >
178
178
< strong style = { { fontSize : "smaller" } } > Buildings:</ strong >
@@ -365,7 +365,7 @@ export class ExportForm extends Component {
365
365
< Panel style = { { marginTop : "20px" } } >
366
366
< FormattedMessage
367
367
id = "ui.overpass_last_updated"
368
- defaultMessage = "Img/pbf/obf/ updated {overpassLastUpdated}, Rest of other formats updated {galaxyLastUpdated} "
368
+ defaultMessage = "Img/pbf/obf updated {overpassLastUpdated}, Rest of other formats updated {galaxyLastUpdated} "
369
369
values = { { overpassLastUpdated, galaxyLastUpdated } }
370
370
/>
371
371
</ Panel >
0 commit comments