fix playlist desc null type render

This commit is contained in:
Simon 2025-12-28 11:32:32 +07:00
parent cd55ae87fa
commit 44c33f02a1
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ export type PlaylistType = {
playlist_active: boolean;
playlist_channel: string;
playlist_channel_id: string;
playlist_description: string;
playlist_description: string | null;
playlist_entries: PlaylistEntryType[];
playlist_sort_order: 'top' | 'bottom';
playlist_id: string;

View File

@ -330,7 +330,7 @@ const Playlist = () => {
</div>
</div>
{playlist.playlist_description !== 'False' && (
{playlist.playlist_description !== null && (
<div className="description-box">
<p
id={descriptionExpanded ? 'text-expand-expanded' : 'text-expand'}