MCPcopy Create free account
hub / github.com/ShipSecAI/studio / isEntryPointNode

Function isEntryPointNode

frontend/src/components/workflow/Canvas.tsx:71–76  ·  view source on GitHub ↗
(node?: Node<NodeData> | null)

Source from the content-addressed store, hash-verified

69 ref === ENTRY_COMPONENT_ID || ref === ENTRY_COMPONENT_SLUG;
70
71const isEntryPointNode = (node?: Node<NodeData> | null) => {
72 if (!node) return false;
73 const nodeData = node?.data as NodeData | undefined;
74 const componentRef = (nodeData?.componentId ?? nodeData?.componentSlug) as string | undefined;
75 return isEntryPointComponentRef(componentRef);
76};
77
78interface CanvasProps {
79 className?: string;

Callers 1

CanvasFunction · 0.70

Calls 1

isEntryPointComponentRefFunction · 0.85

Tested by

no test coverage detected