chore: merge branch dev to main #195

Merged
Anri merged 18 commits from dev into main 2024-10-14 23:41:43 +02:00
Showing only changes of commit ae3b7a2c0d - Show all commits

View file

@ -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({