Skip to content

Commit

Permalink
Fixed unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
benweet committed Aug 19, 2018
1 parent 9a6d0bd commit 1273ec7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/store/explorer.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,10 @@ export default {
const folderNode = getFolder(node, getters);
const sourceId = getters.dragSourceNode.item.id;
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) {
commit('setDragTargetId');
return;
Expand Down

0 comments on commit 1273ec7

Please sign in to comment.