From b770ffda4d4c007f65fb3dc6b2e86cde7ce57093 Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Tue, 14 Jul 2020 18:56:02 +0000 Subject: [PATCH] Desktop: Regression: Fixed adding a new sub-notebook to a notebook --- ElectronClient/gui/SideBar/SideBar.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ElectronClient/gui/SideBar/SideBar.jsx b/ElectronClient/gui/SideBar/SideBar.jsx index f456cab806..5d00f1a919 100644 --- a/ElectronClient/gui/SideBar/SideBar.jsx +++ b/ElectronClient/gui/SideBar/SideBar.jsx @@ -287,7 +287,7 @@ class SideBarComponent extends React.Component { if (itemType === BaseModel.TYPE_FOLDER && !item.encryption_applied) { menu.append( - new MenuItem(CommandService.instance().commandToMenuItem('newNotebook', null, itemId)), + new MenuItem(CommandService.instance().commandToMenuItem('newNotebook', null, { parentId: itemId })), ); }