Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

mobile: fix edit notebook button causes app freeze

Ammar Ahmed039c8faabe15
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);
}
},