Merge pull request #802 from Stremio/fix-search-hide-empty-rows

fix(Search): hide empty catalog rows
This commit is contained in:
Timothy Z. 2025-01-17 21:49:14 +02:00 committed by GitHub
commit 3c2eda6004
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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