Skip to content

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

fix notebook sorting not correct in add to notebook dialog

ammarahm-ed1f38aa5133bc
diff --git a/apps/mobile/src/components/MoveNoteDialog/index.js b/apps/mobile/src/components/MoveNoteDialog/index.js
index d7619b6f5..53dfe318d 100644
--- a/apps/mobile/src/components/MoveNoteDialog/index.js
+++ b/apps/mobile/src/components/MoveNoteDialog/index.js
@@ -75,8 +75,7 @@ const MoveNoteComponent = ({ close, note, setNote }) => {
const [state, dispatch] = useTracked();
const { colors } = state;
- const nbs = useNotebookStore(state => state.notebooks.filter(n => n?.type === 'notebook'));
- let notebooks = [...db.notebooks.all];
+ const notebooks = useNotebookStore(state => state.notebooks.filter(n => n?.type === 'notebook'));
const selectedItemsList = useSelectionStore(state => state.selectedItemsList);
const setNotebooks = useNotebookStore(state => state.setNotebooks);