fix: linting fixes

This commit is contained in:
Pranshu Chittora 2022-03-11 13:42:05 +05:30
parent f0c627eebe
commit f2ace729fd
No known key found for this signature in database
GPG Key ID: 3A9E57A016CC0626
2 changed files with 5 additions and 4 deletions

View File

@ -1,6 +1,5 @@
import { ActiveElement, Chart, ChartData, ChartEvent } from 'chart.js';
import Graph from 'components/Graph';
import { getTimeRange, ITimeRange } from 'components/Graph/xAxisConfig';
import { METRICS_PAGE_QUERY_PARAM } from 'constants/query';
import ROUTES from 'constants/routes';
import FullView from 'container/GridGraphLayout/Graph/FullView';
@ -35,7 +34,8 @@ const Application = ({ getWidget }: DashboardProps): JSX.Element => {
urlParams.set(METRICS_PAGE_QUERY_PARAM.endTime, tPlusOne.toString());
history.replace(
`${ROUTES.TRACE
`${
ROUTES.TRACE
}?${urlParams.toString()}&selected={"serviceName":["${servicename}"],"status":["ok","error"]}&filterToFetchData=["duration","status","serviceName"]&userSelectedFilter={"status":["error","ok"],"serviceName":["${servicename}"]}&isSelectedFilterSkipped=true`,
);
};
@ -88,7 +88,8 @@ const Application = ({ getWidget }: DashboardProps): JSX.Element => {
urlParams.set(METRICS_PAGE_QUERY_PARAM.endTime, tPlusOne.toString());
history.replace(
`${ROUTES.TRACE
`${
ROUTES.TRACE
}?${urlParams.toString()}&selected={"serviceName":["${servicename}"],"status":["error"]}&filterToFetchData=["duration","status","serviceName"]&userSelectedFilter={"status":["error"],"serviceName":["${servicename}"]}&isSelectedFilterSkipped=true`,
);
};

View File

@ -9,7 +9,7 @@ import { TraceReducer } from 'types/reducer/trace';
import { getChartData, getChartDataforGroupBy } from './config';
import { Container } from './styles';
const TraceGraph = () => {
const TraceGraph = (): JSX.Element => {
const { spansGraph, selectedGroupBy } = useSelector<AppState, TraceReducer>(
(state) => state.traces,
);