mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
refactor(Board): hide only empty catalogs
This commit is contained in:
parent
2288bd27d0
commit
5ebc8df63f
1 changed files with 13 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue