Skip to content

Commit fa87c61

Browse files
committed
Have graph edges disabled by default
1 parent 24080ef commit fa87c61

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

redisinsight/ui/src/packages/redisgraph/src/Graph.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export default function Graph(props: { graphKey: string, data: any[] }) {
5050
const [container, setContainer] = useState<IGraphD3>(null)
5151
const [selectedEntity, setSelectedEntity] = useState<ISelectedEntityProps | null>(null)
5252
const [start, setStart] = useState<boolean>(false)
53-
const [showAutomaticEdges, setShowAutomaticEdges] = useState(true);
53+
const [showAutomaticEdges, setShowAutomaticEdges] = useState(false);
5454

5555
const parsedResponse = responseParser(props.data)
5656
let nodeIds = new Set(parsedResponse.nodes.map(n => n.id))

redisinsight/ui/src/packages/redisgraph/src/graphd3.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ export interface IGraphD3 {
626626
function GraphD3(_selector: HTMLDivElement, _options: any): IGraphD3 {
627627
let info: any
628628
let nodes: INode[]
629-
let shouldShowAutomaticEdges = true;
629+
let shouldShowAutomaticEdges = false;
630630
let relationship: d3.Selection<SVGGElement, IRelationship, SVGGElement, any>
631631
let labelCounter = 0;
632632
let labels: { [key: string]: number } = { }

0 commit comments

Comments
 (0)