add prefix "_" to "named" IDs

This commit is contained in:
zadam
2022-12-21 16:11:00 +01:00
parent 1b24276a4a
commit 724f99f17c
49 changed files with 215 additions and 192 deletions

View File

@@ -10,7 +10,7 @@ function isHoistedInHiddenSubtree() {
if (hoistedNoteId === 'root') {
return false;
} else if (hoistedNoteId === 'hidden') {
} else if (hoistedNoteId === '_hidden') {
return true;
}
@@ -20,7 +20,7 @@ function isHoistedInHiddenSubtree() {
throw new Error(`Cannot find hoisted note ${hoistedNoteId}`);
}
return hoistedNote.hasAncestor('hidden');
return hoistedNote.hasAncestor('_hidden');
}
module.exports = {