feat: Automatic plaintext backup option in Preferences > Backups will backup your notes and tags into plaintext, unencrypted folders on your computer. In addition, automatic encrypted text backups preference management has moved from the top-level menu in the desktop app to Preferences > Backups. (#2322)
This commit is contained in:
@@ -343,13 +343,13 @@ export class ItemManager
|
||||
/**
|
||||
* Returns all items that an item directly references
|
||||
*/
|
||||
public referencesForItem(
|
||||
public referencesForItem<I extends Models.DecryptedItemInterface = Models.DecryptedItemInterface>(
|
||||
itemToLookupUuidFor: Models.DecryptedItemInterface,
|
||||
contentType?: ContentType,
|
||||
): Models.DecryptedItemInterface[] {
|
||||
const item = this.findSureItem(itemToLookupUuidFor.uuid)
|
||||
): I[] {
|
||||
const item = this.findSureItem<I>(itemToLookupUuidFor.uuid)
|
||||
const uuids = item.references.map((ref) => ref.uuid)
|
||||
let references = this.findItems(uuids)
|
||||
let references = this.findItems<I>(uuids)
|
||||
if (contentType) {
|
||||
references = references.filter((ref) => {
|
||||
return ref?.content_type === contentType
|
||||
|
||||
Reference in New Issue
Block a user