fix(Search): hide empty catalog rows

This commit is contained in:
Timothy Z. 2025-01-17 20:08:16 +02:00
parent 1989baa262
commit 3636468d45

View file

@ -97,14 +97,17 @@ const Search = ({ queryParams }) => {
);
}
case 'Err': {
return (
<MetaRow
key={index}
className={classnames(styles['search-row'], 'animation-fade-in')}
catalog={catalog}
message={catalog.content.content}
/>
);
if (catalog.content.content !== 'EmptyContent') {
return (
<MetaRow
key={index}
className={classnames(styles['search-row'], 'animation-fade-in')}
catalog={catalog}
message={catalog.content.content}
/>
);
}
return null;
}
default: {
return (