mirror of
https://github.com/zadam/trilium.git
synced 2026-03-14 16:10:23 +01:00
fix(note_icon): empty slots appearing when reducing list
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user