From 1273ec7cb355cfcd8e54bf3835681a3baf294d84 Mon Sep 17 00:00:00 2001 From: benweet Date: Sun, 19 Aug 2018 17:40:39 +0100 Subject: [PATCH] Fixed unit tests --- src/store/explorer.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/store/explorer.js b/src/store/explorer.js index 809bde20c..84a1f0fb4 100644 --- a/src/store/explorer.js +++ b/src/store/explorer.js @@ -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;