Skip to content

frontend-web-editor


Function: getNodeFromId()

getNodeFromId(id, currentNodes): Node<{ branchId?: string; isGrayed?: boolean; }>

Defined in: utils/treeUtils.ts:344

Given the node id, return the node from current nodes.

Parameters

id

string

ID of the node to be retrieved.

currentNodes

Node<{ branchId?: string; isGrayed?: boolean; }>[]

Current nodes.

Returns

Node<{ branchId?: string; isGrayed?: boolean; }>