mirror of
https://github.com/donl/plivo-node.git
synced 2026-06-30 06:12:08 -06:00
handle param empty case
This commit is contained in:
parent
33ed0bfd43
commit
3d5fd6eeee
1 changed files with 1 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ export function Request(config) {
|
|||
};
|
||||
|
||||
return (method, action, params) => {
|
||||
if (params.file) {
|
||||
if (typeof (params) != 'undefined' && typeof (params.file) != 'undefined') {
|
||||
var files = []
|
||||
if (Array.isArray(params.file)) {
|
||||
for (let index = 0; index < params.file.length; index++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue