mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-08-29 10:09:26 +02:00
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:
@@ -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} />
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -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"
|
||||||
}}
|
}}
|
||||||
|
|||||||
Reference in New Issue
Block a user