Skip to content

A modern platform for visual, flexible, and extensible graph-based investigations. For cybersecurity analysts and investigators.

fix(app): decrease NODE_COUNT_THRESHOLD for perfs

dextmorgn7b84fabbdb0d
diff --git a/flowsint-app/src/components/graphs/graph-main.tsx b/flowsint-app/src/components/graphs/graph-main.tsx
index 90be697c..c8be9c76 100644
--- a/flowsint-app/src/components/graphs/graph-main.tsx
+++ b/flowsint-app/src/components/graphs/graph-main.tsx
@@ -9,7 +9,7 @@ const GraphMain = () => {
const toggleNodeSelection = useGraphStore((s) => s.toggleNodeSelection)
const clearSelectedNodes = useGraphStore((s) => s.clearSelectedNodes)
- const graphRef = useRef<any>()
+ const graphRef = useRef<any>(null)
const containerRef = useRef<HTMLDivElement>(null)
const [menu, setMenu] = React.useState<any>(null)
diff --git a/flowsint-app/src/components/graphs/graph-viewer.tsx b/flowsint-app/src/components/graphs/graph-viewer.tsx
index 03d8c768..481f3a5d 100644
--- a/flowsint-app/src/components/graphs/graph-viewer.tsx
+++ b/flowsint-app/src/components/graphs/graph-viewer.tsx
@@ -69,7 +69,7 @@ export const GRAPH_COLORS = {
} as const
const CONSTANTS = {
- NODE_COUNT_THRESHOLD: 1000,
+ NODE_COUNT_THRESHOLD: 400,
NODE_DEFAULT_SIZE: 10,
NODE_LABEL_FONT_SIZE: 3.5,
LABEL_FONT_SIZE: 2.5,