From 82f996317e9966453388eaa54f16bd09657b53e7 Mon Sep 17 00:00:00 2001 From: Dave Smith Date: Thu, 3 Nov 2022 13:57:45 +0000 Subject: [PATCH] Reuse existing variable. --- .../src/navigation/edit/navigation-menu-selector.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/block-library/src/navigation/edit/navigation-menu-selector.js b/packages/block-library/src/navigation/edit/navigation-menu-selector.js index b9aaf50b30b73..dc3e0e9bcf33a 100644 --- a/packages/block-library/src/navigation/edit/navigation-menu-selector.js +++ b/packages/block-library/src/navigation/edit/navigation-menu-selector.js @@ -98,8 +98,8 @@ function NavigationMenuSelector( { if ( isCreatingMenu ) { enableOptions = false; - } else if ( shouldEnableMenuSelector ) { - enableOptions = true; + } else { + enableOptions = shouldEnableMenuSelector; } useEffect( () => {