fix nodejs 10 compatibility, closes #1746

This commit is contained in:
zadam 2021-03-15 20:31:12 +01:00
parent fdce218e88
commit 4e21d12202

View File

@ -405,7 +405,7 @@ class Note {
return 0; return 0;
} }
let minDistance = 999_999; let minDistance = 999999;
for (const parent of this.parents) { for (const parent of this.parents) {
minDistance = Math.min(minDistance, parent.getDistanceToAncestor(ancestorNoteId) + 1); minDistance = Math.min(minDistance, parent.getDistanceToAncestor(ancestorNoteId) + 1);