Don't trim fields on view enrich schema

This commit is contained in:
Adria Navarro 2024-07-02 14:02:49 +02:00
parent 53af94f971
commit 07d538f6fc
1 changed files with 4 additions and 8 deletions

View File

@ -160,14 +160,10 @@ export function enrichSchema(
for (const key of Object.keys(schema)) {
// if nothing specified in view, then it is not visible
const ui = view.schema?.[key] || { visible: false }
if (ui.visible === false) {
schema[key].visible = false
} else {
schema[key] = {
...schema[key],
...ui,
order: anyViewOrder ? ui?.order ?? undefined : schema[key].order,
}
schema[key] = {
...schema[key],
...ui,
order: anyViewOrder ? ui?.order ?? undefined : schema[key].order,
}
}