Merge remote-tracking branch 'origin/stable'

This commit is contained in:
zadam 2021-03-15 23:40:44 +01:00
commit 42067b3c1e
3 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@
"name": "trilium",
"productName": "Trilium Notes",
"description": "Trilium Notes",
"version": "0.46.4-beta",
"version": "0.46.5",
"license": "AGPL-3.0-only",
"main": "electron.js",
"bin": {

View File

@ -1 +1 @@
module.exports = { buildDate:"2021-03-10T23:35:12+01:00", buildRevision: "6f901e6852c33ba0dae6c70efb9f65e5b0028995" };
module.exports = { buildDate:"2021-03-14T22:56:27+01:00", buildRevision: "6c8d20288df302f3a415bd1bdcace98bf29d4bf6" };

View File

@ -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);