MCPcopy Create free account
hub / github.com/experdot/pointer / collapseNode

Function collapseNode

src/renderer/src/stores/helpers/objectNodeHelpers.ts:155–160  ·  view source on GitHub ↗
(objectData: ObjectData, nodeId: string)

Source from the content-addressed store, hash-verified

153
154// 折叠节点
155export const collapseNode = (objectData: ObjectData, nodeId: string): ObjectData => {
156 return {
157 ...objectData,
158 expandedNodes: objectData.expandedNodes.filter((id) => id !== nodeId)
159 }
160}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected