diff --git a/packages/nc-gui/components/smartsheet/column/EditOrAdd.vue b/packages/nc-gui/components/smartsheet/column/EditOrAdd.vue index 2198d253bd..290ce81239 100644 --- a/packages/nc-gui/components/smartsheet/column/EditOrAdd.vue +++ b/packages/nc-gui/components/smartsheet/column/EditOrAdd.vue @@ -66,7 +66,7 @@ const isForm = inject(IsFormInj, ref(false)) const isKanban = inject(IsKanbanInj, ref(false)) -const { isMysql, isMssql } = useBase() +const { isMysql, isMssql, isXcdbBase } = useBase() const reloadDataTrigger = inject(ReloadViewDataHookInj) @@ -86,9 +86,9 @@ const showDeprecated = ref(false) const uiTypesOptions = computed(() => { return [ - ...uiTypes.filter( - (t) => geoDataToggleCondition(t) && (!isEdit.value || !t.virtual) && (!t.deprecated || showDeprecated.value), - ), + ...uiTypes + .filter((t) => geoDataToggleCondition(t) && (!isEdit.value || !t.virtual) && (!t.deprecated || showDeprecated.value)) + .filter((t) => !(t.name === UITypes.SpecificDBType && isXcdbBase(meta.value?.source_id))), ...(!isEdit.value && meta?.value?.columns?.every((c) => !c.pk) ? [ {