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': {
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 (