chore: directly use newToken.value

This commit is contained in:
kolaente 2021-12-26 11:54:27 +01:00
parent b9fa08116d
commit 343be4d5d6
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 2 additions and 3 deletions

View File

@ -101,9 +101,8 @@ const username = computed(() => store.state.auth.info?.username)
const newToken = ref(null)
async function createToken() {
const r = await service.create({})
tokens.value.push(r)
newToken.value = r
newToken.value = await service.create({})
tokens.value.push(newToken.value)
}
async function deleteToken(token: CaldavTokenModel) {