mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-29 19:06:39 +00:00
fix(nc-gui): allow duplicate attachment name if user copy paste from another cell
This commit is contained in:
@@ -201,7 +201,10 @@ export default function convertCellData(
|
||||
const newAttachments: AttachmentType[] = []
|
||||
|
||||
for (const att of attachments) {
|
||||
newAttachments.push({ ...att, title: populateUniqueFileName(att?.title, [...oldAttachments, ...newAttachments]) })
|
||||
newAttachments.push({
|
||||
...att,
|
||||
title: populateUniqueFileName(att?.title, [...oldAttachments, ...newAttachments], att?.mimetype),
|
||||
})
|
||||
}
|
||||
return JSON.stringify([...oldAttachments, ...newAttachments])
|
||||
} else if (files.length && attachments.length) {
|
||||
|
||||
Reference in New Issue
Block a user