We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60cf7c3 commit 1c0eb23Copy full SHA for 1c0eb23
src/modes/exportdata/ExportData.svelte
@@ -59,7 +59,7 @@
59
60
let geoValuesMode = 'all';
61
let geoValues = [];
62
- $: geoItems = [...infosByLevel[geoType] || [], ...(geoType === 'county' ? infosByLevel.state : [])];
+ $: geoItems = [...(infosByLevel[geoType] || []), ...(geoType === 'county' ? infosByLevel.state : [])];
63
$: {
64
if (geoItems != null) {
65
geoValues = [];
@@ -69,7 +69,9 @@
69
function flatIds(geoValues) {
70
if (geoType === 'county') {
71
// flatten states to its counties
72
- return geoValues.map((d) => d.level === 'state' ? getCountiesOfState(d).map((d) => d.propertyId) : d.propertyId).flat();
+ return geoValues
73
+ .map((d) => (d.level === 'state' ? getCountiesOfState(d).map((d) => d.propertyId) : d.propertyId))
74
+ .flat();
75
} else {
76
return geoValues.map((d) => d.propertyId);
77
}
0 commit comments