Don't trim fields on view enrich schema
This commit is contained in:
parent
53af94f971
commit
07d538f6fc
|
@ -160,14 +160,10 @@ export function enrichSchema(
|
||||||
for (const key of Object.keys(schema)) {
|
for (const key of Object.keys(schema)) {
|
||||||
// if nothing specified in view, then it is not visible
|
// if nothing specified in view, then it is not visible
|
||||||
const ui = view.schema?.[key] || { visible: false }
|
const ui = view.schema?.[key] || { visible: false }
|
||||||
if (ui.visible === false) {
|
schema[key] = {
|
||||||
schema[key].visible = false
|
...schema[key],
|
||||||
} else {
|
...ui,
|
||||||
schema[key] = {
|
order: anyViewOrder ? ui?.order ?? undefined : schema[key].order,
|
||||||
...schema[key],
|
|
||||||
...ui,
|
|
||||||
order: anyViewOrder ? ui?.order ?? undefined : schema[key].order,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue