diff --git a/src/views/user/settings/Caldav.vue b/src/views/user/settings/Caldav.vue
index 7f6cf06a..8f18ca43 100644
--- a/src/views/user/settings/Caldav.vue
+++ b/src/views/user/settings/Caldav.vue
@@ -9,10 +9,10 @@
@@ -109,6 +109,9 @@ const deleteToken = async (token: CaldavTokenModel) => {
const r = await service.delete(token)
success(r)
const i = tokens.value.findIndex(v => v.id === token.id)
+ if (i === -1) {
+ return
+ }
tokens.value.splice(i, 1)
}