Merge pull request #144 from openreplay/fix-assist-live
fix(ui) - checking for visited events
This commit is contained in:
commit
1356d5bf3c
2 changed files with 3 additions and 5 deletions
|
|
@ -21,8 +21,7 @@ interface Props {
|
|||
function PageInsightsPanel({
|
||||
filters, fetchInsights, events = [], insights, urlOptions, host, loading = true
|
||||
}: Props) {
|
||||
const [insightsFilters, setInsightsFilters] = useState(filters)
|
||||
console.log('host', host)
|
||||
const [insightsFilters, setInsightsFilters] = useState(filters)
|
||||
|
||||
const onDateChange = (e) => {
|
||||
const { startDate, endDate, rangeValue } = e;
|
||||
|
|
|
|||
|
|
@ -173,12 +173,11 @@ const reducer = (state = initialState, action = {}) => {
|
|||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
console.log('visitedEvents', visitedEvents)
|
||||
})
|
||||
return state.set('current', current.merge(session))
|
||||
.set('eventsIndex', matching)
|
||||
.set('visitedEvents', visitedEvents)
|
||||
.set('host', visitedEvents[0].host);
|
||||
.set('host', visitedEvents[0] && visitedEvents[0].host);
|
||||
}
|
||||
case FETCH_FAVORITE_LIST.SUCCESS:
|
||||
return state
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue