chore: check for no results
All checks were successful
continuous-integration/drone/pr Build is passing
All checks were successful
continuous-integration/drone/pr Build is passing
This commit is contained in:
parent
92238df2d5
commit
5106be028c
|
@ -109,6 +109,9 @@ const deleteToken = async (token: CaldavTokenModel) => {
|
||||||
const r = await service.delete(token)
|
const r = await service.delete(token)
|
||||||
success(r)
|
success(r)
|
||||||
const i = tokens.value.findIndex(v => v.id === token.id)
|
const i = tokens.value.findIndex(v => v.id === token.id)
|
||||||
|
if (i === -1) {
|
||||||
|
return
|
||||||
|
}
|
||||||
tokens.value.splice(i, 1)
|
tokens.value.splice(i, 1)
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Reference in New Issue
Block a user