mirror of
https://github.com/strapi/strapi.git
synced 2025-11-03 03:17:11 +00:00
chore: shorten variable creation
This commit is contained in:
parent
ba8069c1db
commit
123f4d0a47
@ -29,9 +29,10 @@ const createSettingsSchema = (schema) => {
|
|||||||
|
|
||||||
// TODO V5: Refactor non visible fields to be a part of content-manager schema
|
// TODO V5: Refactor non visible fields to be a part of content-manager schema
|
||||||
const model = strapi.getModel(schema.uid);
|
const model = strapi.getModel(schema.uid);
|
||||||
const nonVisibleAttributes = getNonVisibleAttributes(model);
|
const nonVisibleWritableAttributes = intersection(
|
||||||
const writableAttributes = getWritableAttributes(model);
|
getNonVisibleAttributes(model),
|
||||||
const nonVisibleWritableAttributes = intersection(nonVisibleAttributes, writableAttributes);
|
getWritableAttributes(model)
|
||||||
|
);
|
||||||
|
|
||||||
return yup
|
return yup
|
||||||
.object()
|
.object()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user