mobile: allow opening empty trashed notes without contentId

Signed-off-by: kashaf-ansari-dev <kashafansari3108@gmail.com>
This commit is contained in:
kashaf-ansari-dev
2026-07-31 18:04:59 +05:00
parent b5140d9947
commit 966d57dfa2
2 changed files with 4 additions and 4 deletions

View File

@@ -58,9 +58,9 @@ export const openNote = async (
}
if (isTrash) {
if (!note.contentId) return;
const content = await db.content.get(note.contentId as string);
const content = note.contentId
? await db.content.get(note.contentId)
: undefined;
presentSheet({
component: <NotePreview note={item} content={content} />
});

View File

@@ -198,7 +198,7 @@ export default function NotePreview({
<View
style={{
width: "100%",
height: 100,
flex: 1,
justifyContent: "center",
alignItems: "center"
}}