Skip to content

frontend-web-editor


Function: UpdateEventSequenceNode()

UpdateEventSequenceNode(selectedNode, currentNodes, currentEdges): OnUpdateOrDeleteGraphState

Defined in: utils/treeUtils.ts:726

Update an event sequence node, check necessary validations before updating the node

Parameters

selectedNode

Node<EventSequenceNodeProps, EventSequenceNodeTypes>

selected node to be updated

currentNodes

Node[]

list of current nodes

currentEdges

Edge[]

list of current edges

Returns

OnUpdateOrDeleteGraphState

List of nodes and edges which need to be updated, along with a flag 'updateState' (if true, make API call as well). The function returns undefined if the selected node cannot be updated