π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
early continue
Fendy Heryanto5de8b39ac185
diff --git a/packages/nocodb/src/db/BaseModelSqlv2/attachment-url-upload-preparator.ts b/packages/nocodb/src/db/BaseModelSqlv2/attachment-url-upload-preparator.tsindex e08d569193..e8542e903f 100644--- a/packages/nocodb/src/db/BaseModelSqlv2/attachment-url-upload-preparator.ts+++ b/packages/nocodb/src/db/BaseModelSqlv2/attachment-url-upload-preparator.ts@@ -27,15 +27,14 @@ export class AttachmentUrlUploadPreparator {try {const attachmentDataRaw =dataWrapper(data).getByColumnNameTitleOrId(col);- if (attachmentDataRaw) {- attachmentData =- (typeof attachmentDataRaw === 'string'- ? JSON.parse(attachmentDataRaw)- : attachmentDataRaw) ?? [];- if (attachmentData.length === 0) {- continue;- }- } else {+ if (!attachmentDataRaw) {+ continue;+ }+ attachmentData =+ (typeof attachmentDataRaw === 'string'+ ? JSON.parse(attachmentDataRaw)+ : attachmentDataRaw) ?? [];+ if (attachmentData.length === 0) {continue;}} catch {