π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
fix: string parse
mertmit4f1b8506c13e
diff --git a/packages/nocodb/src/db/field-handler/handlers/attachment/attachment.general.handler.ts b/packages/nocodb/src/db/field-handler/handlers/attachment/attachment.general.handler.tsindex 40f7b58574..83878555e9 100644--- a/packages/nocodb/src/db/field-handler/handlers/attachment/attachment.general.handler.ts+++ b/packages/nocodb/src/db/field-handler/handlers/attachment/attachment.general.handler.ts@@ -44,6 +44,10 @@ export class AttachmentGeneralHandler extends ComputedFieldHandler {// do not throw error, but set it as empty arrayvalue = [];}++ if (typeof value === 'string' || !Array.isArray(value)) {+ throwError('Invalid format for attachment field');+ }} catch (e) {// do not throw error, but set it as empty arrayvalue = [];