handle param empty case

This commit is contained in:
narayana shanubhogh 2020-02-24 08:14:22 +05:30
parent 33ed0bfd43
commit 3d5fd6eeee

View file

@ -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++) {