refactor(Board): hide only empty catalogs

This commit is contained in:
Timothy Z. 2025-01-03 17:14:04 +02:00
parent 2288bd27d0
commit 5ebc8df63f

View file

@ -66,6 +66,19 @@ const Board = () => {
/>
);
}
case 'Err': {
if (!catalog.content.content === 'EmptyContent') {
return (
<MetaRow
key={index}
className={classnames(styles['board-row'], 'animation-fade-in')}
catalog={catalog}
message={catalog.content.content}
/>
);
}
return null;
}
default: {
return (
<MetaRow.Placeholder