fix(operation) deleteSilent: refresh: on error -> always

This commit is contained in:
coderaiser 2018-06-07 11:50:15 +03:00
parent c015ce6ce3
commit d43e0b3e59

View file

@ -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);
});
}