chore: move success message after state changes

This commit is contained in:
kolaente 2021-12-26 11:30:44 +01:00 committed by Dominik Pschenitschni
parent c97fff86da
commit 95598a28ae
Signed by: dpschen
GPG Key ID: B257AC0149F43A77
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>