Skip to content

Commit 1c0eb23

Browse files
committed
fix: linting
1 parent 60cf7c3 commit 1c0eb23

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/modes/exportdata/ExportData.svelte

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
6060
let geoValuesMode = 'all';
6161
let geoValues = [];
62-
$: geoItems = [...infosByLevel[geoType] || [], ...(geoType === 'county' ? infosByLevel.state : [])];
62+
$: geoItems = [...(infosByLevel[geoType] || []), ...(geoType === 'county' ? infosByLevel.state : [])];
6363
$: {
6464
if (geoItems != null) {
6565
geoValues = [];
@@ -69,7 +69,9 @@
6969
function flatIds(geoValues) {
7070
if (geoType === 'county') {
7171
// flatten states to its counties
72-
return geoValues.map((d) => d.level === 'state' ? getCountiesOfState(d).map((d) => d.propertyId) : d.propertyId).flat();
72+
return geoValues
73+
.map((d) => (d.level === 'state' ? getCountiesOfState(d).map((d) => d.propertyId) : d.propertyId))
74+
.flat();
7375
} else {
7476
return geoValues.map((d) => d.propertyId);
7577
}

0 commit comments

Comments
 (0)