resolves conflicts

This commit is contained in:
dhrubesh 2021-05-16 18:44:26 +05:30
parent 2bc01e50bd
commit c6e2e297d5
3 changed files with 2 additions and 4 deletions

View File

@ -3,7 +3,6 @@ import ROUTES from "Src/constants/routes";
export const getLocalStorageRouteKey = (pathName: string) => {
let localStorageKey = "";
const pathNameSplit = pathName.split("/");
console.log("pathName", pathName);
if (!pathNameSplit[2]) {
localStorageKey = pathName;
} else {

View File

@ -10,8 +10,7 @@ import {
import { Spin } from "antd";
import styled from "styled-components";
import { StoreState } from "../../store/reducers";
import { getZoomPx, getGraphData } from "./utils";
import { getGraphData, getTooltip } from "./utils";
import { getZoomPx, getGraphData, getTooltip } from "./utils";
import SelectService from "./SelectService";
import { ForceGraph2D } from "react-force-graph";

View File

@ -83,6 +83,7 @@ export const getZoomPx = (): number => {
} else if (width > 2500) {
return 360;
}
};
export const getTooltip = (node: {
p99: number;
@ -105,5 +106,4 @@ export const getTooltip = (node: {
<div class="val">${node.errorRate}%</div>
</div>
</div>`;
};