Fixed drop multiple (#15069)
This PR fixes a bug that prevented dropping multiple items from differents group into one of the groups containing an item of the selection.
This commit is contained in:
-6
@@ -26,12 +26,6 @@ export const computeNewPositionsOfDraggedRecords = ({
|
||||
return null;
|
||||
}
|
||||
|
||||
const targetIsInSourceRecordIds = sourceRecordIds.includes(targetRecordId);
|
||||
|
||||
if (targetIsInSourceRecordIds) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const targetPosition = targetItem.position;
|
||||
|
||||
const indexOfItemToMove = arrayOfRecordsWithPosition.findIndex(
|
||||
|
||||
Reference in New Issue
Block a user