Browse Source

fix: if viewname param is defined and not found in meta then return error

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5832/head
Pranav C 1 year ago
parent
commit
c05fc5bc1c
  1. 1
      packages/nocodb/src/modules/datas/helpers.ts

1
packages/nocodb/src/modules/datas/helpers.ts

@ -43,6 +43,7 @@ export async function getViewAndModelByAliasOrId(param: {
fk_model_id: model.id,
}));
if (!model) NcError.notFound('Table not found');
if (param.viewName && !view) NcError.notFound('View not found');
return { model, view };
}

Loading…
Cancel
Save