From da5fcc85bc8657aec4a0d058ad4b30022ed4beea Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Tue, 15 Feb 2022 13:59:43 +0100 Subject: [PATCH] fix(ui) - do not pause the live session on opening a fetch modal --- frontend/app/components/Session_/Fetch/Fetch.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/frontend/app/components/Session_/Fetch/Fetch.js b/frontend/app/components/Session_/Fetch/Fetch.js index 8bc4f2117..2db36f76f 100644 --- a/frontend/app/components/Session_/Fetch/Fetch.js +++ b/frontend/app/components/Session_/Fetch/Fetch.js @@ -12,6 +12,7 @@ import { setTimelinePointer } from 'Duck/sessions'; @connectPlayer(state => ({ list: state.fetchList, + livePlay: state.livePlay, })) @connect(state => ({ timelinePointer: state.getIn(['sessions', 'timelinePointer']), @@ -36,13 +37,17 @@ export default class Fetch extends React.PureComponent { } setCurrent = (item, index) => { - pause() - jump(item.time) + if (!this.props.livePlay) { + pause(); + jump(item.time) + } this.setState({ current: item, currentIndex: index }); } onRowClick = (item, index) => { - pause() + if (!this.props.livePlay) { + pause(); + } this.setState({ current: item, currentIndex: index, showFetchDetails: true }); this.props.setTimelinePointer(null); }