fic(nc-gui): handle duplicate filename suffix properly #2379

This commit is contained in:
Ramesh Mane
2024-02-22 17:43:06 +00:00
parent e033c9b79f
commit 0e6231870b
4 changed files with 15 additions and 15 deletions

View File

@@ -205,7 +205,7 @@ export default function convertCellData(
...att,
title: populateUniqueFileName(
att?.title,
[...oldAttachments, ...newAttachments].map((fn) => fn?.title || fn?.fileName || 'image'),
[...oldAttachments, ...newAttachments].map((fn) => fn?.title || fn?.fileName),
att?.mimetype,
),
})