From f96ae97de7e196fae79a26b8cdb205c1bb0f360e Mon Sep 17 00:00:00 2001 From: tienifr Date: Mon, 22 Jan 2024 02:01:12 +0700 Subject: [PATCH] execute singleExecution --- src/components/MenuItem.tsx | 2 +- src/components/MenuItemGroup.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/MenuItem.tsx b/src/components/MenuItem.tsx index e701c9e21c00..f009d3f83939 100644 --- a/src/components/MenuItem.tsx +++ b/src/components/MenuItem.tsx @@ -376,7 +376,7 @@ function MenuItem( onPress(event); return; } - singleExecution(waitForNavigate(() => onPress(event))); + singleExecution(waitForNavigate(() => onPress(event)))(); } }; diff --git a/src/components/MenuItemGroup.tsx b/src/components/MenuItemGroup.tsx index e8c7a62bf1a6..8dc8586028d8 100644 --- a/src/components/MenuItemGroup.tsx +++ b/src/components/MenuItemGroup.tsx @@ -16,7 +16,7 @@ type MenuItemGroupProps = { children: React.ReactNode; /** Whether or not to use the single execution hook */ - shouldUseSingleExecution: boolean; + shouldUseSingleExecution?: boolean; }; function MenuItemGroup({children, shouldUseSingleExecution = true}: MenuItemGroupProps) {