Fix not found message showing as API is loading (#995)
This commit is contained in:
parent
ff94c324b3
commit
bb4e5ecb50
|
|
@ -12,3 +12,5 @@ backend/.env
|
||||||
|
|
||||||
# JavaScript stuff
|
# JavaScript stuff
|
||||||
node_modules
|
node_modules
|
||||||
|
|
||||||
|
.editorconfig
|
||||||
|
|
|
||||||
|
|
@ -97,16 +97,8 @@ const ChannelVideo = ({ videoType }: ChannelVideoProps) => {
|
||||||
videoId,
|
videoId,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
if (!channel) {
|
|
||||||
return (
|
|
||||||
<div className="boxed-content">
|
|
||||||
<br />
|
|
||||||
<h2>Channel {channelId} not found!</h2>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
channel && (
|
||||||
<>
|
<>
|
||||||
<title>{`TA | Channel: ${channel.channel_name}`}</title>
|
<title>{`TA | Channel: ${channel.channel_name}`}</title>
|
||||||
<ScrollToTopOnNavigate />
|
<ScrollToTopOnNavigate />
|
||||||
|
|
@ -180,8 +172,8 @@ const ChannelVideo = ({ videoType }: ChannelVideoProps) => {
|
||||||
<>
|
<>
|
||||||
<h2>No videos found...</h2>
|
<h2>No videos found...</h2>
|
||||||
<p>
|
<p>
|
||||||
Try going to the <Link to={Routes.Downloads}>downloads page</Link> to start the scan
|
Try going to the <Link to={Routes.Downloads}>downloads page</Link> to start the
|
||||||
and download tasks.
|
scan and download tasks.
|
||||||
</p>
|
</p>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|
@ -195,6 +187,7 @@ const ChannelVideo = ({ videoType }: ChannelVideoProps) => {
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
|
)
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue