Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: do not show internal links, notebooks etc in properties for trash preview

Abdullah Atta199c5d3e64f2
diff --git a/apps/web/src/components/properties/index.tsx b/apps/web/src/components/properties/index.tsx
index 1761cc325..612c201f3 100644
--- a/apps/web/src/components/properties/index.tsx
+++ b/apps/web/src/components/properties/index.tsx
@@ -203,11 +203,15 @@ function EditorProperties(props: EditorPropertiesProps) {
<Colors noteId={session.note.id} color={session.color} />
)}
</Section>
- <InternalLinks noteId={session.note.id} />
- <Notebooks noteId={session.note.id} />
- <Reminders noteId={session.note.id} />
- <Attachments noteId={session.note.id} />
- <SessionHistory noteId={session.note.id} />
+ {session.type === "deleted" ? null : (
+ <>
+ <InternalLinks noteId={session.note.id} />
+ <Notebooks noteId={session.note.id} />
+ <Reminders noteId={session.note.id} />
+ <Attachments noteId={session.note.id} />
+ <SessionHistory noteId={session.note.id} />
+ </>
+ )}
</ScrollContainer>
</ScopedThemeProvider>
</AnimatedFlex>