MCPcopy Create free account
hub / github.com/bernaferrari/FigmaToCode / removeParent

Function removeParent

apps/plugin/plugin-src/code.ts:214–221  ·  view source on GitHub ↗
(node: any)

Source from the content-addressed store, hash-verified

212 try {
213 const newNodes = await nodesToJSON(nodes, userPluginSettings);
214 const removeParent = (node: any) => {
215 if (node.parent) {
216 delete node.parent;
217 }
218 if (node.children) {
219 node.children.forEach(removeParent);
220 }
221 };
222 newNodes.forEach(removeParent);
223 result.newConversion = newNodes;
224 } catch (error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected