diff --git a/frontend/app/components/Session_/OverviewPanel/OverviewPanel.tsx b/frontend/app/components/Session_/OverviewPanel/OverviewPanel.tsx
index 6292ea391..0f2e99437 100644
--- a/frontend/app/components/Session_/OverviewPanel/OverviewPanel.tsx
+++ b/frontend/app/components/Session_/OverviewPanel/OverviewPanel.tsx
@@ -15,101 +15,132 @@ import OverviewPanelContainer from './components/OverviewPanelContainer';
import { NoContent, Icon } from 'UI';
interface Props {
- resourceList: any[];
- exceptionsList: any[];
- eventsList: any[];
- toggleBottomBlock: any;
- stackEventList: any[];
- issuesList: any[];
- performanceChartData: any;
- endTime: number;
+ resourceList: any[];
+ exceptionsList: any[];
+ eventsList: any[];
+ toggleBottomBlock: any;
+ stackEventList: any[];
+ issuesList: any[];
+ performanceChartData: any;
+ endTime: number;
}
function OverviewPanel(props: Props) {
- const [dataLoaded, setDataLoaded] = React.useState(false);
- const [selectedFeatures, setSelectedFeatures] = React.useState(['PERFORMANCE', 'ERRORS', 'EVENTS']);
+ const [dataLoaded, setDataLoaded] = React.useState(false);
+ const [selectedFeatures, setSelectedFeatures] = React.useState([
+ 'PERFORMANCE',
+ 'ERRORS',
+ 'EVENTS',
+ ]);
- const resources: any = React.useMemo(() => {
- const { resourceList, exceptionsList, eventsList, stackEventList, issuesList, performanceChartData } = props;
- return {
- NETWORK: resourceList,
- ERRORS: exceptionsList,
- EVENTS: stackEventList,
- CLICKRAGE: eventsList.filter((item: any) => item.type === TYPES.CLICKRAGE),
- PERFORMANCE: performanceChartData,
- };
- }, [dataLoaded]);
+ const resources: any = React.useMemo(() => {
+ const {
+ resourceList,
+ exceptionsList,
+ eventsList,
+ stackEventList,
+ issuesList,
+ performanceChartData,
+ } = props;
+ return {
+ NETWORK: resourceList,
+ ERRORS: exceptionsList,
+ EVENTS: stackEventList,
+ CLICKRAGE: eventsList.filter((item: any) => item.type === TYPES.CLICKRAGE),
+ PERFORMANCE: performanceChartData,
+ };
+ }, [dataLoaded]);
- useEffect(() => {
- if (dataLoaded) {
- return;
- }
+ useEffect(() => {
+ if (dataLoaded) {
+ return;
+ }
- if (props.resourceList.length > 0 || props.exceptionsList.length > 0 || props.eventsList.length > 0 || props.stackEventList.length > 0 || props.issuesList.length > 0 || props.performanceChartData.length > 0) {
- setDataLoaded(true);
- }
- }, [props.resourceList, props.exceptionsList, props.eventsList, props.stackEventList, props.performanceChartData]);
+ if (
+ props.resourceList.length > 0 ||
+ props.exceptionsList.length > 0 ||
+ props.eventsList.length > 0 ||
+ props.stackEventList.length > 0 ||
+ props.issuesList.length > 0 ||
+ props.performanceChartData.length > 0
+ ) {
+ setDataLoaded(true);
+ }
+ }, [
+ props.resourceList,
+ props.exceptionsList,
+ props.eventsList,
+ props.stackEventList,
+ props.performanceChartData,
+ ]);
- return (
- dataLoaded && (
-