@ -1,7 +1,7 @@
< script setup lang = "ts" >
import type { SelectProps } from 'ant-design-vue'
import type { ColumnType , LinkToAnotherRecordType } from 'nocodb-sdk'
import { RelationTypes , UITypes , isCreatedOrLastModifiedBy Col , isLinksOrLTAR , isSystemColumn , isVirtualCol } from 'nocodb-sdk'
import { RelationTypes , UITypes , isHidden Col , isLinksOrLTAR , isSystemColumn , isVirtualCol } from 'nocodb-sdk'
import { MetaInj , computed , inject , ref , resolveComponent , useViewColumnsOrThrow } from '#imports'
const { modelValue , isSort , allowEmpty , ... restProps } = defineProps < {
@ -28,8 +28,8 @@ const options = computed<SelectProps['options']>(() =>
(
customColumns . value ? . filter ( ( c : ColumnType ) => {
if ( isSystemColumn ( metaColumnById ? . value ? . [ c . id ! ] ) ) {
if ( isCreatedOrLastModifiedBy Col ( c ) ) {
/** ignore created by and last modified by system field */
if ( isHidden Col ( c ) ) {
/** ignore mm relation column, created by and last modified by system field */
return false
}
}
@ -40,8 +40,8 @@ const options = computed<SelectProps['options']>(() =>
return true
}
if ( isSystemColumn ( metaColumnById ? . value ? . [ c . id ! ] ) ) {
if ( isCreatedOrLastModifiedBy Col ( c ) ) {
/** ignore created by and last modified by system field */
if ( isHidden Col ( c ) ) {
/** ignore mm relation column, created by and last modified by system field */
return false
}