Skip to content

Commit 2325220

Browse files
committed
fix type error
1 parent 9cc14c8 commit 2325220

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

via-ui/src/components/SwissMap.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ onMounted(() => {
2929
.attr('height', '100%')
3030
3131
d3.json('/switzerland-map.json').then((data: any) => {
32-
const key = Object.keys(data.objects)[0]
32+
const key = Object.keys(data.objects)[0] as string
3333
const geoData = topojson.feature(data, data.objects[key]) as any
3434
3535
const projection = d3.geoMercator().fitSize([width, height], geoData)

0 commit comments

Comments
 (0)