mirror of
https://github.com/strapi/strapi.git
synced 2025-12-30 00:37:24 +00:00
All null values in relation plugin field
This commit is contained in:
parent
946aea593e
commit
03b22b5958
@ -31,10 +31,7 @@ module.exports = () => {
|
||||
.string()
|
||||
.oneOf(VALID_NATURES)
|
||||
.required(),
|
||||
plugin: yup
|
||||
.string()
|
||||
.nullable()
|
||||
.oneOf(Object.keys(strapi.plugins)),
|
||||
plugin: yup.string().oneOf(['', ...Object.keys(strapi.plugins)]),
|
||||
unique: validators.unique,
|
||||
|
||||
// TODO: remove once front-end stop sending them even if useless
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user