chore: move success message after state changes

This commit is contained in:
kolaente 2021-12-26 11:30:44 +01:00
parent 9820fcba31
commit e57615c020
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 1 deletions

View File

@ -108,11 +108,11 @@ async function createToken() {
async function deleteToken(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)
success(r)
}
</script>