mirror of
https://github.com/zadam/trilium.git
synced 2025-11-11 15:55:52 +01:00
got rid of .isDeleted on froca entities (the property is not available there)
This commit is contained in:
@@ -460,14 +460,7 @@ export default class AttributeEditorWidget extends NoteContextAwareWidget {
|
||||
const {noteId} = linkService.parseNavigationStateFromUrl($el.find("a").attr("href"));
|
||||
const note = await froca.getNote(noteId, true);
|
||||
|
||||
let title;
|
||||
|
||||
if (!note) {
|
||||
title = '[missing]';
|
||||
}
|
||||
else {
|
||||
title = note.isDeleted ? `${note.title} (deleted)` : note.title;
|
||||
}
|
||||
const title = note ? note.title : '[missing]';
|
||||
|
||||
$el.text(title);
|
||||
}
|
||||
@@ -477,7 +470,6 @@ export default class AttributeEditorWidget extends NoteContextAwareWidget {
|
||||
}
|
||||
|
||||
async renderOwnedAttributes(ownedAttributes, saved) {
|
||||
ownedAttributes = ownedAttributes.filter(oa => !oa.isDeleted);
|
||||
// attrs are not resorted if position changes after initial load
|
||||
ownedAttributes.sort((a, b) => a.position < b.position ? -1 : 1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user