mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 05:15:59 +01:00
converting note properties to methods
This commit is contained in:
@@ -47,10 +47,11 @@ function updateNoteAttribute(req) {
|
||||
return {};
|
||||
}
|
||||
|
||||
attribute = new Attribute();
|
||||
attribute.noteId = noteId;
|
||||
attribute.name = body.name;
|
||||
attribute.type = body.type;
|
||||
attribute = new Attribute({
|
||||
noteId: noteId,
|
||||
name: body.name,
|
||||
type: body.type
|
||||
});
|
||||
}
|
||||
|
||||
if (attribute.type === 'label' || body.value.trim()) {
|
||||
|
||||
Reference in New Issue
Block a user