mobile: fix crash on get search items

This commit is contained in:
ammarahm-ed
2023-04-27 11:27:09 +05:00
committed by Ammar Ahmed
parent 394aa98713
commit 3e446ce9dd

View File

@@ -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");
}
});