|
|
@ -1,4 +1,4 @@ |
|
|
|
import { ViewTypes, isCreatedOrLastModifiedByCol, isSystemColumn } from 'nocodb-sdk' |
|
|
|
import { ViewTypes, isCreatedOrLastModifiedByCol, isMMSystemCol, isSystemColumn } from 'nocodb-sdk' |
|
|
|
import type { ColumnType, GridColumnReqType, GridColumnType, MapType, TableType, ViewType } from 'nocodb-sdk' |
|
|
|
import type { ColumnType, GridColumnReqType, GridColumnType, MapType, TableType, ViewType } from 'nocodb-sdk' |
|
|
|
import type { ComputedRef, Ref } from 'vue' |
|
|
|
import type { ComputedRef, Ref } from 'vue' |
|
|
|
import { computed, ref, storeToRefs, useBase, useNuxtApp, useRoles, useUndoRedo, watch } from '#imports' |
|
|
|
import { computed, ref, storeToRefs, useBase, useNuxtApp, useRoles, useUndoRedo, watch } from '#imports' |
|
|
@ -72,7 +72,7 @@ const [useProvideViewColumns, useViewColumns] = useInjectionState( |
|
|
|
fields.value = meta.value?.columns |
|
|
|
fields.value = meta.value?.columns |
|
|
|
?.filter((column: ColumnType) => { |
|
|
|
?.filter((column: ColumnType) => { |
|
|
|
// filter created by and last modified by system columns
|
|
|
|
// filter created by and last modified by system columns
|
|
|
|
if (isCreatedOrLastModifiedByCol(column) && column.system) return false |
|
|
|
if ((isCreatedOrLastModifiedByCol(column) || isMMSystemCol(column)) && column.system) return false |
|
|
|
return true |
|
|
|
return true |
|
|
|
}) |
|
|
|
}) |
|
|
|
.map((column: ColumnType) => { |
|
|
|
.map((column: ColumnType) => { |
|
|
|