Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
resource: props.resource,
data: {
...draggedRecord,
[props.parentSource]: nodeParent,
[props.positionSource]: nodePosition,
},
parentSource: props.parentSource,
positionSource: props.positionSource,
previousData: draggedRecord,
basePath: props.basePath,
refresh: false,
redirectTo: undefined,
};
if (props.undoable) {
props.startUndoable(crudMoveNodeAction(actionPayload));
} else {
props.crudMoveNode(actionPayload);
}
},
};