support combination of shared and cloned in the note tree, fixes #4097

This commit is contained in:
zadam
2023-07-17 22:26:41 +02:00
parent d6a4f1db13
commit 04c306b360
2 changed files with 11 additions and 2 deletions

View File

@@ -742,7 +742,8 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {
if (note.isShared()) {
extraClasses.push("shared");
}
else if (note.getParentNoteIds().length > 1) {
if (note.getParentNoteIds().length > 1) {
const realClones = note.getParentNoteIds()
.map(noteId => froca.notes[noteId])
.filter(note => !!note)