ps-toolkit-ui 1.12.3 → 1.12.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/ps-toolkit-ui.umd.js +2 -1
- package/bundles/ps-toolkit-ui.umd.js.map +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js.map +1 -1
- package/esm2015/lib/components/form/uploader/form.uploader.component.js +3 -2
- package/fesm2015/ps-toolkit-ui.js +2 -1
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
|
@@ -8085,7 +8085,8 @@
|
|
|
8085
8085
|
var result = {};
|
|
8086
8086
|
result[_this.inp.name] = _this.inp.name;
|
|
8087
8087
|
if (_this.inp.value != null && _this.inp.value instanceof Array) {
|
|
8088
|
-
result[_this.inp.name + 'Files'] = _this.inp.value.map(function (x) { return x.file; });
|
|
8088
|
+
result[_this.inp.name + 'Files'] = _this.inp.value.filter(function (x) { return typeof x.file !== 'string'; }).map(function (x) { return x.file; });
|
|
8089
|
+
result[_this.inp.name + 'Urls'] = _this.inp.value.filter(function (x) { return typeof x.file === 'string'; }).map(function (x) { return x.file; });
|
|
8089
8090
|
return result;
|
|
8090
8091
|
}
|
|
8091
8092
|
return result;
|