From d43e0b3e596abdbff34b73d61c589093f40125db Mon Sep 17 00:00:00 2001 From: coderaiser Date: Thu, 7 Jun 2018 11:50:15 +0300 Subject: [PATCH] fix(operation) deleteSilent: refresh: on error -> always --- client/modules/operation/index.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/client/modules/operation/index.js b/client/modules/operation/index.js index 4db35fc0..5e614530 100644 --- a/client/modules/operation/index.js +++ b/client/modules/operation/index.js @@ -260,14 +260,11 @@ function OperationProto(operation, data) { const names = DOM.getFilenames(files); - deleteFn(path + query, names, (error) => { + deleteFn(path + query, names, () => { const Storage = DOM.Storage; const dirPath = Info.dirPath; - if (error) - return CloudCmd.refresh(); - - DOM.deleteSelected(files); + CloudCmd.refresh(); Storage.removeMatch(dirPath); }); }