mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-04 20:19:30 +00:00
Refac refresh video list when videoId changing
This commit is contained in:
@@ -45,6 +45,7 @@ const ChannelVideo = ({ videoType }: ChannelVideoProps) => {
|
||||
const channel = channelResponse;
|
||||
const videoList = videoResponse?.data;
|
||||
const pagination = videoResponse?.paginate;
|
||||
const refreshWhenVideoIdChanges = videoId !== null;
|
||||
|
||||
const hasVideos = videoResponse?.data?.length !== 0;
|
||||
|
||||
@@ -80,6 +81,7 @@ const ChannelVideo = ({ videoType }: ChannelVideoProps) => {
|
||||
channelId,
|
||||
pagination?.current_page,
|
||||
videoType,
|
||||
refreshWhenVideoIdChanges,
|
||||
]);
|
||||
|
||||
if (!channel) {
|
||||
|
||||
Reference in New Issue
Block a user