mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
checks for catalogs which are not yet started to load
This commit is contained in:
parent
fe216a3bd1
commit
435ebdb3fa
2 changed files with 4 additions and 4 deletions
|
|
@ -52,7 +52,7 @@ const Board = () => {
|
|||
null
|
||||
}
|
||||
{board.catalogs.map((catalog, index) => {
|
||||
switch (catalog.content.type) {
|
||||
switch (catalog.content?.type) {
|
||||
case 'Ready': {
|
||||
return (
|
||||
<MetaRow
|
||||
|
|
@ -76,7 +76,7 @@ const Board = () => {
|
|||
/>
|
||||
);
|
||||
}
|
||||
case 'Loading': {
|
||||
default: {
|
||||
return (
|
||||
<MetaRow.Placeholder
|
||||
key={index}
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ const Search = ({ queryParams }) => {
|
|||
</div>
|
||||
:
|
||||
search.catalogs.map((catalog, index) => {
|
||||
switch (catalog.content.type) {
|
||||
switch (catalog.content?.type) {
|
||||
case 'Ready': {
|
||||
return (
|
||||
<MetaRow
|
||||
|
|
@ -93,7 +93,7 @@ const Search = ({ queryParams }) => {
|
|||
/>
|
||||
);
|
||||
}
|
||||
case 'Loading': {
|
||||
default: {
|
||||
return (
|
||||
<MetaRow.Placeholder
|
||||
key={index}
|
||||
|
|
|
|||
Loading…
Reference in a new issue