mirror of
https://github.com/strapi/strapi.git
synced 2025-09-27 09:25:46 +00:00
chore: ignore metadata visible sync
This commit is contained in:
parent
f3343b0c0b
commit
dfe799a9ae
@ -105,12 +105,6 @@ async function syncMetadatas(configuration, schema) {
|
|||||||
_.set(acc, [key], updatedMeta);
|
_.set(acc, [key], updatedMeta);
|
||||||
}
|
}
|
||||||
|
|
||||||
// update visible attr
|
|
||||||
if (edit.visible && !isVisible(schema, key)) {
|
|
||||||
_.set(updatedMeta, ['edit', 'visible'], false);
|
|
||||||
_.set(acc, [key], updatedMeta);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_.has(edit, 'mainField')) return acc;
|
if (!_.has(edit, 'mainField')) return acc;
|
||||||
|
|
||||||
// remove mainField if the attribute is not a relation anymore
|
// remove mainField if the attribute is not a relation anymore
|
||||||
|
Loading…
x
Reference in New Issue
Block a user