Skip to content

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

fix(app): utils.ts

dextmorgn1e1d9f19c6ba
diff --git a/flowsint-app/src/lib/utils.ts b/flowsint-app/src/lib/utils.ts
index 29d73ad2..104a70d3 100644
--- a/flowsint-app/src/lib/utils.ts
+++ b/flowsint-app/src/lib/utils.ts
@@ -183,9 +183,9 @@ export const getAllNodeTypes = (actionItems: any[]) => {
const types: string[] = []
actionItems.forEach(item => {
if (item.children) {
- item.children.forEach(child => {
- if (child.type && !types.includes(child.type)) {
- types.push(child.type)
+ item.children.forEach((child: GraphNode) => {
+ if (child.data.type && !types.includes(child.data.type)) {
+ types.push(child.data.type)
}
})
} else if (item.type && !types.includes(item.type)) {