perf: Clean up unnecessary fields
This commit is contained in:
parent
74a2309b44
commit
5a3f3fbeff
@ -9,7 +9,9 @@ WorldMapTopoJSON.objects.states.geometries.map((state) => {
|
||||
state.id = state.name || ''
|
||||
if (country) {
|
||||
state.id = country.id || ''
|
||||
state.properties = country.properties
|
||||
state.properties = {
|
||||
name: country.properties?.name || '',
|
||||
}
|
||||
}
|
||||
return state
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user