chore: directly use newToken.value
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
kolaente 2021-12-26 11:54:27 +01:00
parent 6063c03c2f
commit e08c3a3594
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) {