Explorar o código

fix no videos bug

Klaudiusz Dembler %!s(int64=3) %!d(string=hai) anos
pai
achega
4a5c182604
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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'