We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8771297 commit 6ccd6d0Copy full SHA for 6ccd6d0
src/modes/indicator/IndicatorAbout.svelte
@@ -25,7 +25,7 @@
25
26
function buildExportURL() {
27
let exportURL = '';
28
- if (sensor.key.split('-').length >= 2) {
+ if (sensor && sensor.key.split('-').length >= 2) {
29
// account for dashes in the sensor
30
let [first, ...rest] = sensor.key.split('-');
31
rest = rest.join('-');
@@ -35,7 +35,6 @@
35
exportURL += `&geo_type=${region.level}&geo_value=${region.propertyId}`;
36
}
37
if (date) {
38
- console.log(date);
39
exportURL += `&start_day=${formatDateISO(date.value)}&end_day=${formatDateISO(date.value)}`;
40
41
return exportURL;
0 commit comments