perf: Clean up unnecessary fields

This commit is contained in:
ccbikai 2024-06-08 14:47:57 +08:00
parent 74a2309b44
commit 5a3f3fbeff

View File

@ -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
})