From fd37406950c268918657ba532f2b947f0592a973 Mon Sep 17 00:00:00 2001 From: Copons Date: Mon, 22 Mar 2021 14:54:14 +0000 Subject: [PATCH] Simplify code --- .../components/navigation-sidebar/navigation-toggle/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/edit-site/src/components/navigation-sidebar/navigation-toggle/index.js b/packages/edit-site/src/components/navigation-sidebar/navigation-toggle/index.js index 35665c15d923ab..6134af8565f838 100644 --- a/packages/edit-site/src/components/navigation-sidebar/navigation-toggle/index.js +++ b/packages/edit-site/src/components/navigation-sidebar/navigation-toggle/index.js @@ -43,7 +43,7 @@ function NavigationToggle( { icon, isOpen } ) { const toggleNavigationPanel = () => { if ( isOpen ) { - setIsNavigationPanelOpened( ! isOpen ); + setIsNavigationPanelOpened( false ); return; } openNavigationPanelToMenu( navigationPanelMenu );