Merge branch 'master' into fix/json-array-pg

This commit is contained in:
Alexandre BODIN 2019-09-13 10:56:28 +02:00 committed by GitHub
commit 09a227c3d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()