MCPcopy Create free account
hub / github.com/hydro-dev/Hydro / drop

Function drop

packages/ui-default/components/problemconfig/ProblemConfigTree.tsx:36–45  ·  view source on GitHub ↗
(item)

Source from the content-addressed store, hash-verified

34 return item.subtaskId !== subtaskId;
35 },
36 drop(item) {
37 dispatch({
38 type: 'problemconfig/moveTestcases',
39 payload: {
40 target: subtaskId,
41 source: item.subtaskId,
42 cases: item.cases,
43 },
44 });
45 },
46 }));
47
48 function deleteSubtask() {

Callers 1

DraggableSelectionFunction · 0.85

Calls 1

dispatchFunction · 0.85

Tested by

no test coverage detected