perf: Clean up unnecessary fields
This commit is contained in:
parent
74a2309b44
commit
5a3f3fbeff
1 changed files with 3 additions and 1 deletions
|
|
@ -9,7 +9,9 @@ WorldMapTopoJSON.objects.states.geometries.map((state) => {
|
||||||
state.id = state.name || ''
|
state.id = state.name || ''
|
||||||
if (country) {
|
if (country) {
|
||||||
state.id = country.id || ''
|
state.id = country.id || ''
|
||||||
state.properties = country.properties
|
state.properties = {
|
||||||
|
name: country.properties?.name || '',
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return state
|
return state
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue