Skip to content

Commit 6b9f68f

Browse files
authored
Merge pull request #779 from Stremio/fix/hide-empty-board-catalogs
fix(Board): Hide empty catalogs
2 parents a5ae0c1 + c4d69cd commit 6b9f68f

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

src/routes/Board/Board.js

+11-8
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,17 @@ const Board = () => {
6767
);
6868
}
6969
case 'Err': {
70-
return (
71-
<MetaRow
72-
key={index}
73-
className={classnames(styles['board-row'], 'animation-fade-in')}
74-
catalog={catalog}
75-
message={catalog.content.content}
76-
/>
77-
);
70+
if (catalog.content.content !== 'EmptyContent') {
71+
return (
72+
<MetaRow
73+
key={index}
74+
className={classnames(styles['board-row'], 'animation-fade-in')}
75+
catalog={catalog}
76+
message={catalog.content.content}
77+
/>
78+
);
79+
}
80+
return null;
7881
}
7982
default: {
8083
return (

0 commit comments

Comments
 (0)