MCPcopy Create free account
hub / github.com/decaporg/decap-cms / handleSortEnd

Function handleSortEnd

packages/decap-cms-widget-file/src/withFileControl.js:127–132  ·  view source on GitHub ↗
({ active, over })

Source from the content-addressed store, hash-verified

125 );
126
127 function handleSortEnd({ active, over }) {
128 onSortEnd({
129 oldIndex: items.findIndex(item => item.id === active.id),
130 newIndex: items.findIndex(item => item.id === over.id),
131 });
132 }
133
134 return (
135 <div

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected