This commit is contained in:
parent
3a00874ce0
commit
ae3b7a2c0d
1 changed files with 1 additions and 0 deletions
|
@ -25,6 +25,7 @@ export const handleAttachements = (
|
|||
files.forEach((file, idx) => {
|
||||
const fieldValue = currentField.length > 0 ? `${currentField}, ${file}` : file;
|
||||
|
||||
// TODO: There is a bug when there is ONE field, it crashes
|
||||
if (fieldValue.length > maxFieldValueLength || idx === files.length - 1) {
|
||||
multiple = multiple === 0 && idx !== files.length - 1 ? 1 : multiple + 1;
|
||||
fields.push({
|
||||
|
|
Loading…
Reference in a new issue