chrv-components 1.10.48 → 1.10.49

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