chore: ignore metadata visible sync

This commit is contained in:
Marc-Roig 2023-07-11 17:28:21 +02:00 committed by Fernando Chavez
parent f3343b0c0b
commit dfe799a9ae

View File

@ -105,12 +105,6 @@ async function syncMetadatas(configuration, schema) {
_.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;
// remove mainField if the attribute is not a relation anymore