From 7a5298a7556f7dcc52f59b8ea76d040d3ddc3d12 Mon Sep 17 00:00:00 2001 From: WeidiDeng Date: Wed, 16 Dec 2020 23:08:56 +0800 Subject: [PATCH] fix: delete extra remove prefix (#1186) Fix file actions within /files dir --- frontend/src/api/files.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/api/files.js b/frontend/src/api/files.js index 08f0d84a..2b5cf540 100644 --- a/frontend/src/api/files.js +++ b/frontend/src/api/files.js @@ -121,7 +121,7 @@ function moveCopy (items, copy = false, overwrite = false, rename = false) { let promises = [] for (let item of items) { - const from = removePrefix(item.from) + const from = item.from const to = encodeURIComponent(removePrefix(item.to)) const url = `${from}?action=${copy ? 'copy' : 'rename'}&destination=${to}&override=${overwrite}&rename=${rename}` promises.push(resourceAction(url, 'PATCH'))