From cff036d08bd7569d95b9dbe205a4ba904239c59a Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Mon, 15 Jun 2020 22:59:42 +0000 Subject: [PATCH] Desktop: Do not expand the leaft notebook when following a link to a note --- ReactNativeClient/lib/models/Folder.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ReactNativeClient/lib/models/Folder.js b/ReactNativeClient/lib/models/Folder.js index b445d2a41e..d995d46b7b 100644 --- a/ReactNativeClient/lib/models/Folder.js +++ b/ReactNativeClient/lib/models/Folder.js @@ -223,6 +223,8 @@ class Folder extends BaseItem { static async expandTree(folders, parentId) { const folderPath = await this.folderPath(folders, parentId); + folderPath.pop(); // We don't expand the leaft notebook + for (const folder of folderPath) { this.dispatch({ type: 'FOLDER_SET_COLLAPSED',