Apease eslint (#631)
This commit is contained in:
parent
f060d4b1b8
commit
3ab6b2a05d
|
@ -136,7 +136,7 @@ export function createFetchEdgePairQuery(
|
||||||
export function trimGraph(
|
export function trimGraph(
|
||||||
currentRoot: GraphData.GremlinVertex,
|
currentRoot: GraphData.GremlinVertex,
|
||||||
graphData: GraphData.GraphData<GraphData.GremlinVertex, GraphData.GremlinEdge>
|
graphData: GraphData.GraphData<GraphData.GremlinVertex, GraphData.GremlinEdge>
|
||||||
) {
|
): void {
|
||||||
const importantNodes = [currentRoot.id].concat(currentRoot._ancestorsId);
|
const importantNodes = [currentRoot.id].concat(currentRoot._ancestorsId);
|
||||||
graphData.unloadAllVertices(importantNodes);
|
graphData.unloadAllVertices(importantNodes);
|
||||||
|
|
||||||
|
@ -150,7 +150,7 @@ export function addRootChildToGraph(
|
||||||
root: GraphData.GremlinVertex,
|
root: GraphData.GremlinVertex,
|
||||||
child: GraphData.GremlinVertex,
|
child: GraphData.GremlinVertex,
|
||||||
graphData: GraphData.GraphData<GraphData.GremlinVertex, GraphData.GremlinEdge>
|
graphData: GraphData.GraphData<GraphData.GremlinVertex, GraphData.GremlinEdge>
|
||||||
) {
|
): void {
|
||||||
child._ancestorsId = (root._ancestorsId || []).concat([root.id]);
|
child._ancestorsId = (root._ancestorsId || []).concat([root.id]);
|
||||||
graphData.addVertex(child);
|
graphData.addVertex(child);
|
||||||
createEdgesfromNode(child, graphData);
|
createEdgesfromNode(child, graphData);
|
||||||
|
|
|
@ -18,6 +18,7 @@ export function getAuthorizationHeader(): ViewModels.AuthorizationTokenHeaderMet
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
||||||
export function decryptJWTToken(token: string) {
|
export function decryptJWTToken(token: string) {
|
||||||
if (!token) {
|
if (!token) {
|
||||||
Logger.logError("Cannot decrypt token: No JWT token found", "AuthorizationUtils/decryptJWTToken");
|
Logger.logError("Cannot decrypt token: No JWT token found", "AuthorizationUtils/decryptJWTToken");
|
||||||
|
|
Loading…
Reference in New Issue