Skip to content

Commit ca6bb41

Browse files
committed
fix: pass end date filter to geo-breakdown API call
1 parent dbac947 commit ca6bb41

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/js/techreport/geoBreakdown.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ class GeoBreakdown {
3131
fetchData() {
3232
const technology = this.pageFilters.app.map(encodeURIComponent).join(',');
3333
const rank = encodeURIComponent(this.pageFilters.rank || 'ALL');
34-
const url = `${Constants.apiBase}/geo-breakdown?technology=${technology}&rank=${rank}`;
34+
const end = this.pageFilters.end ? `&end=${encodeURIComponent(this.pageFilters.end)}` : '';
35+
const url = `${Constants.apiBase}/geo-breakdown?technology=${technology}&rank=${rank}${end}`;
3536

3637
fetch(url)
3738
.then(r => r.json())

0 commit comments

Comments
 (0)