diff --git a/src/services/video.service.js b/src/services/video.service.js index 4b6eefc..67d067e 100644 --- a/src/services/video.service.js +++ b/src/services/video.service.js @@ -226,7 +226,9 @@ export const viewUnReadDummyVideo=async(data)=>{ console.log("123"); const TagData=[]; const getVideoData=await UnReadVideoInfo(data); - + if (!(getVideoData && Array.isArray(getVideoData) && getVideoData.length >0)) { + return {"videos":[]}; + } for(let i =0; i