mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-28 16:06:47 +01:00
mobile: fix crash on get search items
This commit is contained in:
@@ -118,6 +118,7 @@ const Notebook = ({ route, navigation }: NavigationProps<"Notebook">) => {
|
||||
get: () => {
|
||||
const notebook = db.notebooks?.notebook(params?.current?.item?.id)
|
||||
?.data as NotebookType;
|
||||
if (!notebook) return [];
|
||||
return db.relations?.from(notebook, "note");
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user