Skip to content

Build your personal knowledge base with Trilium Notes

fix(mobile/custom_note_actions): note icon shown in empty note

Elian Doran0d444daaca59
diff --git a/apps/client/src/widgets/note_icon.tsx b/apps/client/src/widgets/note_icon.tsx
index bc4094439e..6c79bc8017 100644
--- a/apps/client/src/widgets/note_icon.tsx
+++ b/apps/client/src/widgets/note_icon.tsx
@@ -69,7 +69,7 @@ function MobileNoteIconSwitcher({ note, icon }: {
const [ modalShown, setModalShown ] = useState(false);
const { windowWidth } = useWindowSize();
- return (
+ return (note &&
<div className="note-icon-widget">
<ActionButton
className="note-icon"