MCPcopy
hub / github.com/stemdeckapp/stemdeck / reparentFolder

Function reparentFolder

static/js/catalog.js:628–636  ·  view source on GitHub ↗
(childId, newParentId)

Source from the content-addressed store, hash-verified

626}
627
628function reparentFolder(childId, newParentId) {
629 if (childId === newParentId) return;
630 if (isFolderDescendant(childId, newParentId)) return; // would create cycle
631 const child = folders.find((f) => f.id === childId);
632 if (!child) return;
633 child.parentId = newParentId;
634 saveState();
635 render();
636}
637
638let folderEditor = null;
639

Callers 1

renderFolderFunction · 0.85

Calls 3

isFolderDescendantFunction · 0.85
saveStateFunction · 0.85
renderFunction · 0.70

Tested by

no test coverage detected