mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 00:47:01 +00:00
fix(rest) onDelete: if Files is empty names = p.name
This commit is contained in:
parent
741ecdea53
commit
e64f8d0b2b
1 changed files with 1 additions and 1 deletions
|
|
@ -174,7 +174,7 @@
|
|||
|
||||
onDelete(p.name, files, query, function(error, callback) {
|
||||
checkSendError(error, params, function() {
|
||||
var names = files.length ? files : p.name;
|
||||
var names = (files && files.length) ? files : p.name;
|
||||
|
||||
if (callback)
|
||||
Util.exec(callback);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue