fix(note_icon): empty slots appearing when reducing list

This commit is contained in:
Elian Doran 2025-12-28 22:59:01 +02:00
parent 56304a4d71
commit ebd60519dd
No known key found for this signature in database

View File

@ -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 (