From ce72a3747896fda855e3dc1b916a11e891709837 Mon Sep 17 00:00:00 2001 From: Muhammed Mustafa Date: Tue, 10 Oct 2023 06:48:00 +0000 Subject: [PATCH] fix(nc-gui): Specific db fix --- .../nc-gui/components/smartsheet/column/EditOrAdd.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) ? [ {