فهرست منبع

fix no videos bug

Klaudiusz Dembler 3 سال پیش
والد
کامیت
4a5c182604
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      src/views/studio/MyVideosView/MyVideosView.tsx

+ 2 - 1
src/views/studio/MyVideosView/MyVideosView.tsx

@@ -231,7 +231,8 @@ export const MyVideosView = () => {
             <Grid maxColumns={null} onResize={handleOnResizeGrid}>
               {gridContent}
             </Grid>
-            {((isDraftTab && drafts.length === 0) || (!isDraftTab && totalCount === 0 && !loading)) && (
+            {((isDraftTab && drafts.length === 0) ||
+              (!isDraftTab && totalCount === 0 && !loading && (!videos || videos.length === 0))) && (
               <EmptyVideos
                 text={
                   currentTabName === 'All Videos'