Browse Source

fix: handle if table not found

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5936/head
Pranav C 1 year ago
parent
commit
52ee552494
  1. 4
      packages/nocodb/src/services/tables.service.ts

4
packages/nocodb/src/services/tables.service.ts

@ -247,6 +247,10 @@ export class TablesService {
id: param.tableId,
});
if (!table) {
NcError.notFound('Table not found');
}
// todo: optimise
const viewList = <View[]>(
await this.xcVisibilityMetaGet(table.project_id, [table])

Loading…
Cancel
Save