fix(ui): fix clickmap crashes

This commit is contained in:
nick-delirium 2023-01-23 18:12:34 +01:00
parent 227525d053
commit 0199b9ba87
3 changed files with 7 additions and 2 deletions

View file

@ -49,7 +49,8 @@ function ClickMapCard({
const jumpToEvent = metricStore.instance.data.events.find((evt: Record<string, any>) => {
if (searchUrl) return evt.path.includes(searchUrl)
return evt
})
}) || { timestamp: metricStore.instance.data.startTs }
const jumpTimestamp = (jumpToEvent.timestamp - metricStore.instance.data.startTs) + jumpToEvent.domBuildingTime
return (

View file

@ -1,7 +1,7 @@
import React from 'react';
import { observer } from 'mobx-react-lite';
import cn from 'classnames';
import styles from 'Components/Session_/session.module.css';
import styles from './styles.module.css';
import Renderer from './Renderer';
function PlayerContent() {

View file

@ -0,0 +1,4 @@
.session {
display: flex;
height: 800px;
}