mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
fix(operation) deleteSilent: refresh: on error -> always
This commit is contained in:
parent
c015ce6ce3
commit
d43e0b3e59
1 changed files with 2 additions and 5 deletions
|
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue