Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
small fixes
zadam29713de6cd7c
diff --git a/src/becca/entities/attribute.js b/src/becca/entities/attribute.jsindex 045092583b..bb209d3ec4 100644--- a/src/becca/entities/attribute.js+++ b/src/becca/entities/attribute.js@@ -63,8 +63,6 @@ class Attribute extends AbstractEntity {}init() {- this.validate();-if (this.attributeId) {this.becca.attributes[this.attributeId] = this;}diff --git a/src/routes/api/attributes.js b/src/routes/api/attributes.jsindex ec4ab2c3f1..54ef7a39f6 100644--- a/src/routes/api/attributes.js+++ b/src/routes/api/attributes.js@@ -49,7 +49,7 @@ function updateNoteAttribute(req) {}}else {- if (body.type === 'relation' && !body.value.trim()) {+ if (body.type === 'relation' && !body.value?.trim()) {return {};}@@ -68,6 +68,8 @@ function updateNoteAttribute(req) {attribute.markAsDeleted();}+ console.log(attribute);+attribute.save();return {diff --git a/src/services/special_notes.js b/src/services/special_notes.jsindex e75a336219..dbf8937aac 100644--- a/src/services/special_notes.js+++ b/src/services/special_notes.js@@ -209,7 +209,7 @@ function createLauncher({parentNoteId, launcherType, id}) {function resetLauncher(noteId) {const note = becca.getNote(noteId);- if (note.isLauncherConfig()) {+ if (note.isLaunchBarConfig()) {if (note) {if (noteId === '_lbRoot') {// deleting hoisted notes are not allowed, so we just reset the children