Skip to content

Commit

Permalink
Merge pull request #802 from Stremio/fix-search-hide-empty-rows
Browse files Browse the repository at this point in the history
fix(Search): hide empty catalog rows
  • Loading branch information
kKaskak authored Jan 17, 2025
2 parents 1989baa + 3636468 commit 3c2eda6
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions src/routes/Search/Search.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 3c2eda6

Please sign in to comment.