From 039c8faabe159c389d3106a577e358906fb33045 Mon Sep 17 00:00:00 2001 From: Ammar Ahmed Date: Fri, 25 Jul 2025 10:57:14 +0500 Subject: [PATCH] mobile: fix edit notebook button causes app freeze --- apps/mobile/app/hooks/use-actions.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/mobile/app/hooks/use-actions.tsx b/apps/mobile/app/hooks/use-actions.tsx index 650fb8793..6f056c198 100644 --- a/apps/mobile/app/hooks/use-actions.tsx +++ b/apps/mobile/app/hooks/use-actions.tsx @@ -515,6 +515,8 @@ export const useActions = ({ title: strings.addNotebook(), icon: "plus", onPress: async () => { + close(); + await sleep(300); AddNotebookSheet.present(undefined, item); } }, @@ -523,6 +525,8 @@ export const useActions = ({ title: strings.editNotebook(), icon: "square-edit-outline", onPress: async () => { + close(); + await sleep(300); AddNotebookSheet.present(item); } },