diff --git a/frontend/app/components/Session/Player/ReplayPlayer/PlayerBlockHeader.tsx b/frontend/app/components/Session/Player/ReplayPlayer/PlayerBlockHeader.tsx index 162f92237..7fc8eabe3 100644 --- a/frontend/app/components/Session/Player/ReplayPlayer/PlayerBlockHeader.tsx +++ b/frontend/app/components/Session/Player/ReplayPlayer/PlayerBlockHeader.tsx @@ -24,7 +24,8 @@ function PlayerBlockHeader(props: any) { const [hideBack, setHideBack] = React.useState(false); const { player, store } = React.useContext(PlayerContext); - const { width, height, showEvents } = store.get(); + const playerState = store?.get?.() || { width: 0, height: 0, showEvents: false } + const { width = 0, height = 0, showEvents = false } = playerState const { session, diff --git a/frontend/app/components/Session/WebPlayer.tsx b/frontend/app/components/Session/WebPlayer.tsx index 53fe57bf8..07fab2877 100644 --- a/frontend/app/components/Session/WebPlayer.tsx +++ b/frontend/app/components/Session/WebPlayer.tsx @@ -1,6 +1,6 @@ import React, { useEffect, useState } from 'react'; import { connect } from 'react-redux'; -import { Modal } from 'UI'; +import { Modal, Loader } from 'UI'; import { toggleFullscreen, closeBottomBlock } from 'Duck/components/player'; import { fetchList } from 'Duck/integrations'; import { createWebPlayer } from 'Player'; @@ -100,7 +100,7 @@ function WebPlayer(props: any) { contextValue.player.play(); }; - if (!contextValue.player || !session) return null; + if (!session) return ; return ( @@ -112,12 +112,12 @@ function WebPlayer(props: any) { fullscreen={fullscreen} /> {/* @ts-ignore */} - + /> : } {showNoteModal ? ( void; members: object[]; clearCurrentSession: () => void; }) { - React.useEffect(() => { - clearCurrentSession() - }, []) return (
@@ -36,5 +31,4 @@ export default connect( // @ts-ignore members: state.getIn(['members', 'list']), }), - { clearCurrentSession } )(SessionListContainer); diff --git a/frontend/app/components/shared/SessionListContainer/components/SessionTags/SessionTags.tsx b/frontend/app/components/shared/SessionListContainer/components/SessionTags/SessionTags.tsx index b8eb23d1e..aa35b48f9 100644 --- a/frontend/app/components/shared/SessionListContainer/components/SessionTags/SessionTags.tsx +++ b/frontend/app/components/shared/SessionListContainer/components/SessionTags/SessionTags.tsx @@ -38,7 +38,7 @@ export default connect( const isEnterprise = state.getIn(['user', 'account', 'edition']) === 'ee'; return { activeTab: state.getIn(['search', 'activeTab']), - tags: issues_types.filter((tag: any) => (isEnterprise ? tag.type !== 'bookmark' : tag.type !== 'vault')), + tags: issues_types.filter((tag: any) => tag.type !== 'mouse_thrashing' && (isEnterprise ? tag.type !== 'bookmark' : tag.type !== 'vault')), total: state.getIn(['sessions', 'total']) || 0, }; },