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
change to relation map note type doesn't trigger content change, related issue #258
azivnera60883268170
diff --git a/src/public/javascripts/services/note_detail_relation_map.js b/src/public/javascripts/services/note_detail_relation_map.jsindex 400c10cd29..f9720803a3 100644--- a/src/public/javascripts/services/note_detail_relation_map.js+++ b/src/public/javascripts/services/note_detail_relation_map.js@@ -80,7 +80,16 @@ const linkOverlays = [function loadMapData() {const currentNote = noteDetailService.getCurrentNote();mapData = {- notes: []+ notes: [],+ // it is important to have this exact value here so that initial transform is same as this+ // which will guarantee note won't be saved on first conversion to relation map note type+ // this keeps the principle that note type change doesn't destroy note content unless user+ // does some actual change+ transform: {+ x: 0,+ y: 0,+ scale: 1+ }};if (currentNote.content) {