chore: merge branch dev
to main
#195
1 changed files with 1 additions and 0 deletions
|
@ -25,6 +25,7 @@ export const handleAttachements = (
|
||||||
files.forEach((file, idx) => {
|
files.forEach((file, idx) => {
|
||||||
const fieldValue = currentField.length > 0 ? `${currentField}, ${file}` : file;
|
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) {
|
if (fieldValue.length > maxFieldValueLength || idx === files.length - 1) {
|
||||||
multiple = multiple === 0 && idx !== files.length - 1 ? 1 : multiple + 1;
|
multiple = multiple === 0 && idx !== files.length - 1 ? 1 : multiple + 1;
|
||||||
fields.push({
|
fields.push({
|
||||||
|
|
Loading…
Reference in a new issue