mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-20 10:42:12 +00:00
refactor(Board): dont show err instead
This commit is contained in:
parent
c65b10e915
commit
2288bd27d0
1 changed files with 2 additions and 19 deletions
|
|
@ -57,29 +57,12 @@ const Board = () => {
|
|||
{board.catalogs.map((catalog, index) => {
|
||||
switch (catalog.content?.type) {
|
||||
case 'Ready': {
|
||||
if (catalog.content.content.length > 0) {
|
||||
return (
|
||||
<MetaRow
|
||||
key={index}
|
||||
className={classnames(
|
||||
styles['board-row'],
|
||||
styles[`board-row-${catalog.content.content[0].posterShape}`],
|
||||
'animation-fade-in'
|
||||
)}
|
||||
catalog={catalog}
|
||||
itemComponent={MetaItem}
|
||||
/>
|
||||
);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
case 'Err': {
|
||||
return (
|
||||
<MetaRow
|
||||
key={index}
|
||||
className={classnames(styles['board-row'], 'animation-fade-in')}
|
||||
className={classnames(styles['board-row'], styles[`board-row-${catalog.content.content[0].posterShape}`], 'animation-fade-in')}
|
||||
catalog={catalog}
|
||||
message={catalog.content.content}
|
||||
itemComponent={MetaItem}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue