diff --git a/packages/server/src/api/controllers/table/utils.ts b/packages/server/src/api/controllers/table/utils.ts index bbccde467b..866b0a8f42 100644 --- a/packages/server/src/api/controllers/table/utils.ts +++ b/packages/server/src/api/controllers/table/utils.ts @@ -111,7 +111,8 @@ export function importToRows(data: any, table: any, user: any = {}) { for ([fieldName, schema] of Object.entries(table.schema)) { // check whether the options need to be updated for inclusion as part of the data import if ( - schema.type === FieldTypes.OPTIONS && + (schema.type === FieldTypes.OPTIONS || + schema.type === FieldTypes.ARRAY) && row[fieldName] && (!schema.constraints.inclusion || schema.constraints.inclusion.indexOf(row[fieldName]) === -1)