From 412c745e534eafcbfb00f8dbacdb7d8ea15ea215 Mon Sep 17 00:00:00 2001 From: zadam Date: Wed, 12 Jan 2022 19:46:40 +0100 Subject: [PATCH] prevent infinite recursion when checking shared status --- package-lock.json | 4 ++-- src/public/app/entities/note_short.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 12e360bf8..60dde35b1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "trilium", - "version": "0.49.2-beta", + "version": "0.49.4", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "trilium", - "version": "0.49.2-beta", + "version": "0.49.4", "license": "AGPL-3.0-only", "dependencies": { "@electron/remote": "2.0.1", diff --git a/src/public/app/entities/note_short.js b/src/public/app/entities/note_short.js index b2a0eebcc..836755566 100644 --- a/src/public/app/entities/note_short.js +++ b/src/public/app/entities/note_short.js @@ -790,7 +790,7 @@ class NoteShort { const parentNote = froca.notes[parentNoteId]; - if (!parentNote) { + if (!parentNote || parentNote.type === 'search') { continue; }