Skip to content

Build your personal knowledge base with Trilium Notes

fix(note_icon): empty slots appearing when reducing list

Elian Doranebd60519dd25
diff --git a/apps/client/src/widgets/note_icon.tsx b/apps/client/src/widgets/note_icon.tsx
index 70d79fb657..7bbbd3e345 100644
--- a/apps/client/src/widgets/note_icon.tsx
+++ b/apps/client/src/widgets/note_icon.tsx
@@ -156,7 +156,7 @@ function IconItemCell({ rowIndex, columnIndex, style, filteredIcons }: CellCompo
}>): React.JSX.Element {
const iconIndex = rowIndex * 12 + columnIndex;
const iconData = filteredIcons[iconIndex] as IconWithName | undefined;
- if (!iconData) return <span style={style as CSSProperties} />;
+ if (!iconData) return <></>;
const { id, terms, iconPack } = iconData;
return (