Skip to content

Build your personal knowledge base with Trilium Notes

chore(note_icon): hide filter if no custom icon packs

Elian Doran8053221b12a4
diff --git a/apps/client/src/widgets/note_icon.tsx b/apps/client/src/widgets/note_icon.tsx
index 44cbf67c43..516af39231 100644
--- a/apps/client/src/widgets/note_icon.tsx
+++ b/apps/client/src/widgets/note_icon.tsx
@@ -127,7 +127,7 @@ function NoteIconList({ note }: { note: FNote }) {
autoFocus
/>
- <Dropdown
+ {glob.iconRegistry.sources.length > 0 && <Dropdown
buttonClassName="bx bx-filter-alt"
hideToggleArrow
noSelectButtonStyle
@@ -135,7 +135,7 @@ function NoteIconList({ note }: { note: FNote }) {
iconAction
>
<IconFilterContent filterByPrefix={filterByPrefix} setFilterByPrefix={setFilterByPrefix} />
- </Dropdown>
+ </Dropdown>}
</div>
<div