mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-24 23:45:38 +00:00
Merge pull request #12001 from nocodb/nc-fix/form-submit-attachment
do not filter undefined id attachments
This commit is contained in:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user