Merge pull request #144 from openreplay/fix-assist-live

fix(ui) - checking for visited events
This commit is contained in:
Shekar Siri 2021-08-13 03:58:46 +05:30 committed by GitHub
commit 1356d5bf3c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 5 deletions

View file

@ -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;

View file

@ -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