소스 검색

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'