diff --git a/packages/strapi-plugin-content-manager/controllers/validation/model-configuration.js b/packages/strapi-plugin-content-manager/controllers/validation/model-configuration.js index 85ec8dffbf..016b6ea2d6 100644 --- a/packages/strapi-plugin-content-manager/controllers/validation/model-configuration.js +++ b/packages/strapi-plugin-content-manager/controllers/validation/model-configuration.js @@ -45,12 +45,12 @@ const createSettingsSchema = (model, schema) => { // should be reset when the type changes mainField: yup .string() - .oneOf(validAttributes) + .oneOf(validAttributes.concat('id')) .default('id'), // should be reset when the type changes defaultSortBy: yup .string() - .oneOf(validAttributes) + .oneOf(validAttributes.concat('id')) .default('id'), defaultSortOrder: yup .string()