Merge pull request #12001 from nocodb/nc-fix/form-submit-attachment

do not filter undefined id attachments
This commit is contained in:
Pranav C
2025-07-30 14:05:51 +05:30
committed by GitHub

View File

@@ -56,7 +56,7 @@ export class AttachmentUrlUploadPreparator {
const columnKeyName = dataWrapper(data).getColumnKeyName(col);
// remove temp_ ids so it doesn't get recorded in audit
data[columnKeyName] = JSON.stringify(
attachmentData.filter((dt) => dt.id && !dt.id.startsWith('temp_')),
attachmentData.filter((dt) => !dt.id?.startsWith('temp_')),
);
}
return { postInsertOps, preInsertOps, postInsertAuditOps };