diff --git a/packages/nocodb/src/models/Model.ts b/packages/nocodb/src/models/Model.ts index b9703569ad..ebe5ad416e 100644 --- a/packages/nocodb/src/models/Model.ts +++ b/packages/nocodb/src/models/Model.ts @@ -381,12 +381,13 @@ export default class Model implements TableType { viewId?: string; dbDriver: XKnex; model?: Model; + extractDefaultView?: boolean; }, ncMeta = Noco.ncMeta, ): Promise { const model = args?.model || (await this.get(args.id, ncMeta)); - if (!args?.viewId) { + if (!args?.viewId && args.extractDefaultView) { const view = await View.getDefaultView(model.id, ncMeta); args.viewId = view.id; }