From 54694c4a0c0dc9502fb6a348c588a2066096267e Mon Sep 17 00:00:00 2001 From: Alhadis Date: Thu, 30 Mar 2017 19:06:42 +1100 Subject: [PATCH] Update name of path-property in new TreeView event References: atom/tree-view#1049 --- lib/consumers/tree-view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/consumers/tree-view.js b/lib/consumers/tree-view.js index 21437faf..247d1219 100644 --- a/lib/consumers/tree-view.js +++ b/lib/consumers/tree-view.js @@ -40,7 +40,7 @@ class TreeView extends Consumer { // TODO: Remove check when/if atom/tree-view#966 is merged/shipped if("function" === typeof this.element.onEntryMoved){ const onMove = this.element.onEntryMoved(paths => { - FileSystem.updatePath(paths.oldPath, paths.newPath); + FileSystem.updatePath(paths.initialPath, paths.newPath); }); this.disposables.add(onMove); }