Skip to content

Commit 0ce2e15

Browse files
committed
fix type error
1 parent ca0688d commit 0ce2e15

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

via-ui/src/components/SwissMap.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ watch(
141141
() => {
142142
const s = gameState.value.shapePreview
143143
if (s.length === 0) return ''
144-
const a = s[0]
145-
const b = s[s.length - 1]
144+
const a = s[0]!!
145+
const b = s[s.length - 1]!!
146146
return `${s.length}:${a.lat},${a.lon}:${b.lat},${b.lon}`
147147
},
148148
() => {

0 commit comments

Comments
 (0)