Skip to content

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

mobile: fix notebook sheet does not remember last position

Ammar Ahmed99e4e61a55c1
diff --git a/apps/mobile/app/components/sheets/notebook-sheet/index.tsx b/apps/mobile/app/components/sheets/notebook-sheet/index.tsx
index 611f518b6..2c1f526f1 100644
--- a/apps/mobile/app/components/sheets/notebook-sheet/index.tsx
+++ b/apps/mobile/app/components/sheets/notebook-sheet/index.tsx
@@ -139,7 +139,7 @@ export const NotebookSheet = () => {
currentItem.current = nextRoot;
const snapPoint = NotebookSheetConfig.get({
type: "notebook",
- id: nextRoot as string
+ id: focusedRouteId as string
});
if (ref.current?.isOpen()) {