optional channel_tags key

This commit is contained in:
Simon
2025-02-23 19:22:20 +07:00
parent 0a0a59b390
commit ab83bd9b16
3 changed files with 5 additions and 3 deletions

View File

@@ -222,7 +222,7 @@ const ChannelAbout = () => {
</div>
)}
{channel.channel_tags.length > 0 && (
{channel?.channel_tags && channel.channel_tags.length > 0 && (
<div className="description-box">
<div className="video-tag-box">
{channel.channel_tags.map(tag => {

View File

@@ -36,7 +36,7 @@ export type ChannelType = {
channel_overwrites?: ChannelOverwritesType;
channel_subs: number;
channel_subscribed: boolean;
channel_tags: string[];
channel_tags?: string[];
channel_thumb_url: string;
channel_tvart_url: string;
channel_views: number;