From 006dec75d5c28ebeacc0b2e77018180622d9e982 Mon Sep 17 00:00:00 2001 From: Anbarasu Date: Tue, 3 Sep 2024 19:37:50 +0530 Subject: [PATCH] fix: form submission url (#9421) --- packages/nocodb/src/helpers/webhookHelpers.ts | 11 ++--------- .../src/utils/common/formSubmissionEmailTemplate.ts | 2 +- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/packages/nocodb/src/helpers/webhookHelpers.ts b/packages/nocodb/src/helpers/webhookHelpers.ts index 3218849956..37ca4919b2 100644 --- a/packages/nocodb/src/helpers/webhookHelpers.ts +++ b/packages/nocodb/src/helpers/webhookHelpers.ts @@ -713,16 +713,9 @@ export function _transformSubmittedFormDataForEmail( } transformedData[col.title] = (transformedData[col.title] || []) .map((attachment) => { - if ( - ['jpeg', 'gif', 'png', 'apng', 'svg', 'bmp', 'ico', 'jpg'].includes( - attachment.title.split('.').pop(), - ) - ) { - return ``; - } - return `${attachment.title}`; + return attachment.title; }) - .join(' '); + .join('
'); } else if ( transformedData[col.title] && typeof transformedData[col.title] === 'object' diff --git a/packages/nocodb/src/utils/common/formSubmissionEmailTemplate.ts b/packages/nocodb/src/utils/common/formSubmissionEmailTemplate.ts index c6de82cdc4..8d04607101 100644 --- a/packages/nocodb/src/utils/common/formSubmissionEmailTemplate.ts +++ b/packages/nocodb/src/utils/common/formSubmissionEmailTemplate.ts @@ -130,7 +130,7 @@ export default ` - NocoDB

NocoDB

+ NocoDB