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