@@ -2,7 +2,7 @@ import { useMemo, useEffect, useState } from 'react';
22import { useApiResource , useProvidersConfigResource } from '../../lib/api/useApiResource' ;
33import { ManagedResourcesRequest } from '../../lib/api/types/crossplane/listManagedResources' ;
44import { resourcesInterval } from '../../lib/shared/constants' ;
5- import { Node , Edge , Position , MarkerType } from '@xyflow/react' ;
5+ import { Node , Edge , Position } from '@xyflow/react' ;
66import dagre from 'dagre' ;
77import { NodeData , ColorBy } from './types' ;
88import { buildTreeData , generateColorMap } from './graphUtils' ;
@@ -25,9 +25,9 @@ function buildGraph(
2525 const colorKey : string =
2626 colorBy === 'source' ? n . providerType : colorBy === 'flux' ? ( n . fluxName ?? 'default' ) : n . providerConfigName ;
2727 const borderColor = colorMap [ colorKey ] || '#ccc' ;
28- const backgroundColor = `${ borderColor } 08` ;
29-
30- const node : Node < NodeData > = {
28+ const backgroundColor = `${ borderColor } 08` ;
29+
30+ const node : Node < NodeData > = {
3131 id : n . id ,
3232 type : 'custom' ,
3333 data : { ...n } ,
@@ -56,7 +56,8 @@ function buildGraph(
5656 id : `e-${ n . parentId } -${ n . id } ` ,
5757 source : n . parentId ,
5858 target : n . id ,
59- style : { strokeWidth : 2 , stroke : '#888' } , } ) ;
59+ style : { strokeWidth : 2 , stroke : '#888' } ,
60+ } ) ;
6061 }
6162 n . extraRefs ?. forEach ( ( refId ) => {
6263 if ( nodeMap . has ( refId ) ) {
0 commit comments