mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 19:04:38 +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
|
||||
const model = strapi.getModel(schema.uid);
|
||||
const nonVisibleAttributes = getNonVisibleAttributes(model);
|
||||
const writableAttributes = getWritableAttributes(model);
|
||||
const nonVisibleWritableAttributes = intersection(nonVisibleAttributes, writableAttributes);
|
||||
const nonVisibleWritableAttributes = intersection(
|
||||
getNonVisibleAttributes(model),
|
||||
getWritableAttributes(model)
|
||||
);
|
||||
|
||||
return yup
|
||||
.object()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user