Desktop: Do not expand the leaft notebook when following a link to a note

pull/3375/head
Laurent Cozic 2020-06-15 22:59:42 +00:00
parent 7826cc0b03
commit cff036d08b
1 changed files with 2 additions and 0 deletions

View File

@ -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',