diff --git a/src/pages/Channels.tsx b/src/pages/Channels.tsx index d40d01c..0ecd0d8 100644 --- a/src/pages/Channels.tsx +++ b/src/pages/Channels.tsx @@ -55,7 +55,7 @@ export default function Channels() { setLoading(true) try { const response = await channelsApi.getChannels() - const data = response.data.data + const data = response.data.data as Channel[] | { list: Channel[] } | undefined const list = Array.isArray(data) ? data : (data?.list || []) list.sort((a: Channel, b: Channel) => a.sort_order - b.sort_order) setChannels(list)