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:
Lucas Bordeau
2025-10-13 17:23:44 +02:00
committed by GitHub
parent b3ddc2ddfb
commit 7869d80e8e
@@ -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(