diff --git a/tubearchivist/www/src/pages/channel.tsx b/tubearchivist/www/src/pages/channel.tsx index 1df863c..b6adabe 100644 --- a/tubearchivist/www/src/pages/channel.tsx +++ b/tubearchivist/www/src/pages/channel.tsx @@ -76,18 +76,18 @@ const Channel: NextPage<{ channels: Channel }> = ({ channels }) => { /> -

Total matching channels: {channels.data.length}

+

Total matching channels: {channels?.data?.length}

{/* {% if results %} {% for channel in results %} */} {channels && - channels.data.map((channel) => { + channels?.data?.map((channel) => { return ( -
+
{{ channel.source.channel_id }}-banner @@ -97,7 +97,7 @@ const Channel: NextPage<{ channels: Channel }> = ({ channels }) => {
channel-thumb @@ -106,17 +106,19 @@ const Channel: NextPage<{ channels: Channel }> = ({ channels }) => {

{" "} - {channel.channel_name}{" "} + {channel?.channel_name}{" "}

{/* {% if channel.source.channel_subs >= 1000000 %} */} -

Subscribers: {channel.channel_subs}

+

Subscribers: {channel?.channel_subs}

{/* {% else %} */}
-

Last refreshed: {channel.channel_last_refresh}

+

+ Last refreshed: {channel?.channel_last_refresh}{" "} +

{/* {% if channel.source.channel_subscribed %} */}