diff --git a/packages/server/src/sdk/app/views/index.ts b/packages/server/src/sdk/app/views/index.ts index ab4b82d162..d52bdc65d6 100644 --- a/packages/server/src/sdk/app/views/index.ts +++ b/packages/server/src/sdk/app/views/index.ts @@ -202,7 +202,7 @@ export async function enrichSchema( const viewSchema = view.schema || {} const anyViewOrder = Object.values(viewSchema).some(ui => ui.order != null) - for (const key of Object.keys(schema)) { + for (const key of Object.keys(viewSchema)) { // if nothing specified in view, then it is not visible const ui = viewSchema[key] || { visible: false } schema[key] = {