chore: directly use newToken.value

This commit is contained in:
kolaente 2021-12-26 11:54:27 +01:00 committed by Dominik Pschenitschni
parent 2c2631faac
commit f2005a9826
Signed by untrusted user: dpschen
GPG Key ID: B257AC0149F43A77

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) {