prevent falsely adjusting currently dragged item on parentExpand

This commit is contained in:
peterkogo
2024-04-15 17:31:48 +02:00
parent 87086e9997
commit 81bdaf6b68
+1 -1
View File
@@ -198,7 +198,7 @@ export function handleParentExpand(
const childNodes = parentLookup.get(id);
childNodes?.forEach((childNode) => {
if (!nodes.find((n) => n.id === childNode.id)) {
if (!nodes.some((n) => n.id === childNode.id)) {
changes.push({
id: childNode.id,
type: 'position',