Merge pull request #10183 from kashaf-ansari-dev/fix-10165-empty-trash-note

mobile: allow opening empty trashed notes without contentId
This commit is contained in:
Ammar Ahmed
2026-08-10 14:12:12 +05:00
committed by GitHub
2 changed files with 4 additions and 4 deletions

View File

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

View File

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