瀏覽代碼

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'