mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
fix nodejs 10 compatibility, closes #1746
This commit is contained in:
parent
fdce218e88
commit
4e21d12202
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user