Browse Source

fix: pw test fail issue

pull/7605/head
Ramesh Mane 10 months ago
parent
commit
10bc22d4d9
  1. 2
      packages/nc-gui/utils/fileUtils.ts

2
packages/nc-gui/utils/fileUtils.ts

@ -84,7 +84,7 @@ export function extractImageSrcFromRawHtml(rawText: string) {
export function populateUniqueFileName(fn: string, attachments: any[], mimeType: string) {
// If the image extension is not present, the while loop will go into an infinite loop. So, add the extension first if not present.
if (!isImage(fn)) {
if (!fn?.endsWith(mimeType.split('/')[1])) {
fn = `${fn}.${mimeType.split('/')[1]}`
}

Loading…
Cancel
Save