chore: correctly refresh vault info badge

This commit is contained in:
Aman Harwara
2023-09-12 00:02:01 +05:30
parent ada155a8c9
commit 53785c7100
3 changed files with 12 additions and 18 deletions

View File

@@ -243,7 +243,12 @@ export class VaultService
}
getItemVault(item: DecryptedItemInterface): VaultListingInterface | undefined {
if (this.items.isTemplateItem(item)) {
return undefined
}
const latestItem = this.items.findItem(item.uuid)
if (!latestItem) {
throw new Error('Cannot find latest version of item to get vault for')
}