Fixed unit tests
This commit is contained in:
parent
9a6d0bddc8
commit
1273ec7cb3
@ -199,7 +199,10 @@ export default {
|
|||||||
const folderNode = getFolder(node, getters);
|
const folderNode = getFolder(node, getters);
|
||||||
const sourceId = getters.dragSourceNode.item.id;
|
const sourceId = getters.dragSourceNode.item.id;
|
||||||
const { nodeMap } = getters;
|
const { nodeMap } = getters;
|
||||||
for (let parentNode = folderNode; parentNode; parentNode = nodeMap[node.item.parentId]) {
|
for (let parentNode = folderNode;
|
||||||
|
parentNode;
|
||||||
|
parentNode = nodeMap[parentNode.item.parentId]
|
||||||
|
) {
|
||||||
if (parentNode.item.id === sourceId) {
|
if (parentNode.item.id === sourceId) {
|
||||||
commit('setDragTargetId');
|
commit('setDragTargetId');
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user