From a3c2e3e72353622227a0b71b70a70476b900eacb Mon Sep 17 00:00:00 2001 From: Komediruzecki Date: Wed, 9 Jun 2021 19:28:16 +0200 Subject: [PATCH] Fix delete folder archives notes and they show up in workspace --- src/lib/v2/mappers/local/sidebarTree.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/v2/mappers/local/sidebarTree.tsx b/src/lib/v2/mappers/local/sidebarTree.tsx index aebfa23751..52f33bce54 100644 --- a/src/lib/v2/mappers/local/sidebarTree.tsx +++ b/src/lib/v2/mappers/local/sidebarTree.tsx @@ -291,6 +291,9 @@ export function mapTree( }) notes.forEach((doc) => { + if (doc.trashed) { + return + } const noteId = doc._id const href = getDocHref(doc, workspace.id) const bookmarked = !!doc.data.bookmarked