From 5c4af242fc9b19e222fcc2b216f25cc8171b5f58 Mon Sep 17 00:00:00 2001 From: AmirmahdiNourkazemi Date: Wed, 1 Jul 2026 15:21:54 +0330 Subject: [PATCH] feat: add sub category --- app/dashboard/music/playlists/page.tsx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/dashboard/music/playlists/page.tsx b/app/dashboard/music/playlists/page.tsx index 7b3e1bb..c2a0a63 100644 --- a/app/dashboard/music/playlists/page.tsx +++ b/app/dashboard/music/playlists/page.tsx @@ -31,6 +31,8 @@ interface Playlist { detail_image_id?: number | null; detail_image?: unknown; is_premium?: boolean; + categories?: { id: number; name?: string }[]; + subcategories?: { id: number; name?: string }[]; } interface MusicCategory { @@ -164,6 +166,14 @@ export default function MusicPlaylistsPage() { ), }, { key: "name", header: "نام" }, + { + key: "subcategories", + header: "زیر‌دسته", + render: (r) => + r.subcategories?.length + ? r.subcategories.map((s) => s.name).filter(Boolean).join("، ") + : "—", + }, { key: "description", header: "توضیحات",