mirror of
https://github.com/zadam/trilium.git
synced 2025-11-11 15:55:52 +01:00
add prefix "_" to "named" IDs
This commit is contained in:
@@ -129,7 +129,7 @@ class Branch extends AbstractEntity {
|
||||
* @returns {boolean}
|
||||
*/
|
||||
get isWeak() {
|
||||
return ['share', 'lbBookmarks'].includes(this.parentNoteId);
|
||||
return ['_share', 'lbBookmarks'].includes(this.parentNoteId);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -211,7 +211,7 @@ class Branch extends AbstractEntity {
|
||||
let maxNotePos = 0;
|
||||
|
||||
for (const childBranch of this.parentNote.getChildBranches()) {
|
||||
if (maxNotePos < childBranch.notePosition && childBranch.branchId !== 'hidden') {
|
||||
if (maxNotePos < childBranch.notePosition && childBranch.branchId !== '_hidden') {
|
||||
maxNotePos = childBranch.notePosition;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user