diff --git a/packages/nocodb/src/models/Column.ts b/packages/nocodb/src/models/Column.ts index 5736b47414..6030e61021 100644 --- a/packages/nocodb/src/models/Column.ts +++ b/packages/nocodb/src/models/Column.ts @@ -1,4 +1,4 @@ -import { AllowedColumnTypesForQrAndBarcodes, UITypes } from 'nocodb-sdk'; +import { AllowedColumnTypesForQrAndBarcodes, isLinksOrLTAR, UITypes } from 'nocodb-sdk' import NocoCache from '../cache/NocoCache'; import { CacheDelDirection, @@ -705,7 +705,7 @@ export default class Column implements ColumnType { } // if relation column check lookup and rollup and delete - if (col.uidt === UITypes.LinkToAnotherRecord) { + if (isLinksOrLTAR(col.uidt)) { { // get lookup columns using relation and delete const cachedList = await NocoCache.getList(CacheScope.COL_LOOKUP, [id]); @@ -784,6 +784,7 @@ export default class Column implements ColumnType { cacheScopeName = CacheScope.COL_LOOKUP; break; case UITypes.LinkToAnotherRecord: + case UITypes.Links: colOptionTableName = MetaTable.COL_RELATIONS; cacheScopeName = CacheScope.COL_RELATION; break;