Fixed unit tests

This commit is contained in:
benweet 2018-08-19 17:40:39 +01:00
parent 9a6d0bddc8
commit 1273ec7cb3

View File

@ -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;