mirror of
https://github.com/zadam/trilium.git
synced 2025-12-29 18:54:29 +01:00
fix(note_icon): empty slots appearing when reducing list
This commit is contained in:
parent
56304a4d71
commit
ebd60519dd
@ -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 (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user