瀏覽代碼

fix new video button display when there is no active channel (#739)

mikkio 3 年之前
父節點
當前提交
413d2ee8a7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/components/Topbar/StudioTopbar/StudioTopbar.tsx

+ 1 - 1
src/components/Topbar/StudioTopbar/StudioTopbar.tsx

@@ -144,7 +144,7 @@ const StudioTopbar: React.FC<StudioTopbarProps> = ({ hideChannelInfo, fullWidth
         {!hideChannelInfo && (
           <StudioTopbarContainer>
             <CSSTransition
-              in={sheetState !== 'open'}
+              in={sheetState !== 'open' && !!activeChannelId}
               unmountOnExit
               mountOnEnter
               timeout={parseInt(transitions.timings.loading)}