chrv-components 1.10.48 → 1.10.50
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.
|
Binary file
|
|
@@ -2374,11 +2374,11 @@ class ChrFormComponent {
|
|
|
2374
2374
|
if (this.flattenedControls[key].type === 'file' &&
|
|
2375
2375
|
this.flattenedControls[key].base64 === false) {
|
|
2376
2376
|
if (this.flattenedControls[key].multiple === true) {
|
|
2377
|
-
for (const file of this.model[key])
|
|
2378
|
-
data.append(key, file
|
|
2377
|
+
for (const file of (this.model[key] ?? []))
|
|
2378
|
+
data.append(key, file?.file ?? '');
|
|
2379
2379
|
}
|
|
2380
2380
|
else
|
|
2381
|
-
data.append(key, this.model[key]
|
|
2381
|
+
data.append(key, this.model[key]?.file ?? '');
|
|
2382
2382
|
}
|
|
2383
2383
|
else
|
|
2384
2384
|
data.append(key, this.model[key] ?? '');
|