chore: check for no results
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
kolaente 2021-12-20 18:32:57 +01:00
parent 92238df2d5
commit 5106be028c
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 7 additions and 4 deletions

View File

@ -9,10 +9,10 @@
</div>
<div class="control">
<x-button
@click="copy(caldavUrl)"
:shadow="false"
v-tooltip="$t('misc.copy')"
icon="paste"
@click="copy(caldavUrl)"
:shadow="false"
v-tooltip="$t('misc.copy')"
icon="paste"
/>
</div>
</div>
@ -109,6 +109,9 @@ const deleteToken = async (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)
}
</script>