mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-05-02 18:29:28 -05:00
fixes and right pane layout changes
This commit is contained in:
@@ -105,8 +105,8 @@ class TreeCache {
|
||||
const targetNote = this.notes[attributeRow.value];
|
||||
|
||||
if (targetNote) {
|
||||
if (!note.targetRelations.includes(attributeId)) {
|
||||
note.targetRelations.push(attributeId);
|
||||
if (!targetNote.targetRelations.includes(attributeId)) {
|
||||
targetNote.targetRelations.push(attributeId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -288,7 +288,7 @@ async function processSyncRows(syncRows) {
|
||||
}
|
||||
|
||||
if (targetNote) {
|
||||
targetNote.targetRelations = targetNote.targetRelations.filter(attributeId => attributeId !== attribute.value);
|
||||
targetNote.targetRelations = targetNote.targetRelations.filter(attributeId => attributeId !== attribute.attributeId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user