Skip to content

Commit 6ccd6d0

Browse files
committed
Consider null sensor
1 parent 8771297 commit 6ccd6d0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/modes/indicator/IndicatorAbout.svelte

+1-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
2626
function buildExportURL() {
2727
let exportURL = '';
28-
if (sensor.key.split('-').length >= 2) {
28+
if (sensor && sensor.key.split('-').length >= 2) {
2929
// account for dashes in the sensor
3030
let [first, ...rest] = sensor.key.split('-');
3131
rest = rest.join('-');
@@ -35,7 +35,6 @@
3535
exportURL += `&geo_type=${region.level}&geo_value=${region.propertyId}`;
3636
}
3737
if (date) {
38-
console.log(date);
3938
exportURL += `&start_day=${formatDateISO(date.value)}&end_day=${formatDateISO(date.value)}`;
4039
}
4140
return exportURL;

0 commit comments

Comments
 (0)