fix file rename

pull/3094/head
yann300 7 years ago
parent f8e5a26980
commit 5680b84c8c
  1. 6
      src/app/files/file-explorer.js

@ -308,8 +308,10 @@ function fileExplorer (appAPI, files) {
function fileRenamed (oldName, newName, isFolder) {
var li = getElement(oldName)
if (li) li.parentElement.removeChild(li)
fileFocus(newName)
if (li) {
li.parentElement.removeChild(li)
fileAdded(newName)
}
}
function fileRenamedError (error) {

Loading…
Cancel
Save