|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
import type { ColumnType, LinkToAnotherRecordType, PaginatedType, RelationTypes, TableType, ViewType } from 'nocodb-sdk' |
|
|
|
|
import { UITypes, isCreatedOrLastModifiedTimeCol } from 'nocodb-sdk' |
|
|
|
|
import { UITypes, isCreatedOrLastModifiedByCol, isCreatedOrLastModifiedTimeCol } from 'nocodb-sdk' |
|
|
|
|
import type { ComputedRef, Ref } from 'vue' |
|
|
|
|
import { |
|
|
|
|
NOCO, |
|
|
|
@ -166,12 +166,8 @@ export function useData(args: {
|
|
|
|
|
|
|
|
|
|
isPaginationLoading.value = true |
|
|
|
|
|
|
|
|
|
// Todo: use isCreatedOrLastModifiedByCol insted of hardcoded values once upgrader is ready for oss
|
|
|
|
|
const autoGeneratedKeys = clone(metaValue?.columns || []) |
|
|
|
|
.filter( |
|
|
|
|
(c) => |
|
|
|
|
c.uidt !== UITypes.ID && (isCreatedOrLastModifiedTimeCol(c) || c.uidt === 'CreatedBy' || c.uidt === 'LastModifiedBy'), |
|
|
|
|
) |
|
|
|
|
.filter((c) => !c.pk && (isCreatedOrLastModifiedTimeCol(c) || isCreatedOrLastModifiedByCol(c))) |
|
|
|
|
.map((c) => c.title) |
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|