diff --git a/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.js b/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.js index a1ba7042f158..21e712c418e6 100644 --- a/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.js +++ b/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.js @@ -128,8 +128,8 @@ function FloatingActionButtonAndPopover(props) { if (!isCreateMenuActive) { return; } - props.onHideCreateMenu(); setIsCreateMenuActive(false); + props.onHideCreateMenu(); }, // eslint-disable-next-line react-hooks/exhaustive-deps [isCreateMenuActive], @@ -182,7 +182,7 @@ function FloatingActionButtonAndPopover(props) {