Browse Source

fix: handle if mm table is missing

pull/7524/head
Pranav C 10 months ago
parent
commit
96400de68e
  1. 6
      packages/nocodb/src/db/BaseModelSqlv2.ts

6
packages/nocodb/src/db/BaseModelSqlv2.ts

@ -1245,6 +1245,12 @@ class BaseModelSqlv2 {
// const tn = this.model.tn;
// const cn = (await relColOptions.getChildColumn()).title;
const mmTable = await relColOptions.getMMModel();
// if mm table is not present then return
if (!mmTable) {
return;
}
const vtn = this.getTnPath(mmTable);
const vcn = (await relColOptions.getMMChildColumn()).column_name;
const vrcn = (await relColOptions.getMMParentColumn()).column_name;

Loading…
Cancel
Save