Fix not found message showing as API is loading (#995)

This commit is contained in:
Craig Alexander
2025-06-15 05:19:14 -04:00
committed by GitHub
parent ff94c324b3
commit bb4e5ecb50
2 changed files with 85 additions and 90 deletions

2
.gitignore vendored
View File

@@ -12,3 +12,5 @@ backend/.env
# JavaScript stuff
node_modules
.editorconfig

View File

@@ -97,16 +97,8 @@ const ChannelVideo = ({ videoType }: ChannelVideoProps) => {
videoId,
]);
if (!channel) {
return (
<div className="boxed-content">
<br />
<h2>Channel {channelId} not found!</h2>
</div>
);
}
return (
channel && (
<>
<title>{`TA | Channel: ${channel.channel_name}`}</title>
<ScrollToTopOnNavigate />
@@ -180,8 +172,8 @@ const ChannelVideo = ({ videoType }: ChannelVideoProps) => {
<>
<h2>No videos found...</h2>
<p>
Try going to the <Link to={Routes.Downloads}>downloads page</Link> to start the scan
and download tasks.
Try going to the <Link to={Routes.Downloads}>downloads page</Link> to start the
scan and download tasks.
</p>
</>
)}
@@ -195,6 +187,7 @@ const ChannelVideo = ({ videoType }: ChannelVideoProps) => {
</div>
)}
</>
)
);
};