Fix spread operator use.

This commit is contained in:
Sam Rose 2024-10-02 16:52:40 +01:00
parent e13fdf883c
commit 73613ce8bf
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -307,7 +307,7 @@ export async function enrichSchema(
// if nothing specified in view, then it is not visible // if nothing specified in view, then it is not visible
const ui = viewSchema[key] || { visible: false } const ui = viewSchema[key] || { visible: false }
schema[key] = { schema[key] = {
...(tableSchema[key] || {}), ...tableSchema[key],
...ui, ...ui,
order: anyViewOrder ? ui?.order ?? undefined : tableSchema[key]?.order, order: anyViewOrder ? ui?.order ?? undefined : tableSchema[key]?.order,
columns: undefined, columns: undefined,