Skip to content

Commit 2ac9c69

Browse files
authored
Update renderHelper.js
It is necessary to deal with elements that don't have id
1 parent 4b5e12f commit 2ac9c69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/renderHelper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function computeNodes({ $slots, realList, getKey }) {
1818
}
1919
const defaultNodes = normalizedList.flatMap((element, index) =>
2020
item({ element, index }).map(node => {
21-
node.key = getKey(element);
21+
node.key = getKey(element, index);
2222
node.props = { ...(node.props || {}), "data-draggable": true };
2323
return node;
2424
})

0 commit comments

Comments
 (0)