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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 85 additions and 90 deletions

2
.gitignore vendored
View File

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

View File

@ -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>
)} )}
</> </>
)
); );
}; };