diff --git a/src/services/note_cache/entities/note.js b/src/services/note_cache/entities/note.js index 25e928503..3adef3148 100644 --- a/src/services/note_cache/entities/note.js +++ b/src/services/note_cache/entities/note.js @@ -405,7 +405,7 @@ class Note { return 0; } - let minDistance = 999_999; + let minDistance = 999999; for (const parent of this.parents) { minDistance = Math.min(minDistance, parent.getDistanceToAncestor(ancestorNoteId) + 1);