Skip to content

frontend-web-editor


Function: RevertTentativeState()

RevertTentativeState(currentNodes, currentEdges): OnUpdateOrDeleteGraphState

Defined in: utils/treeUtils.ts:643

Clear all "tentative" markers on nodes/edges and reset related flags.

Used to exit the intermediate state created during functional node update/delete workflows. Returns an updated state with tentative flags removed; no API sync is performed by this function.

Parameters

currentNodes

Node<EventSequenceNodeProps>[]

Current nodes (may include tentative flags).

currentEdges

Edge<EventSequenceEdgeProps>[]

Current edges (may include tentative flags).

Returns

OnUpdateOrDeleteGraphState

Updated state with all tentative flags cleared.