diff --git a/packages/nc-gui/components/smartsheet/column/EditOrAdd.vue b/packages/nc-gui/components/smartsheet/column/EditOrAdd.vue index 7ead5c523d..1745405464 100644 --- a/packages/nc-gui/components/smartsheet/column/EditOrAdd.vue +++ b/packages/nc-gui/components/smartsheet/column/EditOrAdd.vue @@ -52,9 +52,13 @@ const columnToValidate = [UITypes.Email, UITypes.URL, UITypes.PhoneNumber] const onlyNameUpdateOnEditColumns = [UITypes.LinkToAnotherRecord, UITypes.Lookup, UITypes.Rollup] +const geoDataToggleCondition = (t) => { + return geodataToggleState.show ? geodataToggleState.show : !t.name.includes(UITypes.GeoData) +} + const uiTypesOptions = computed(() => { return [ - ...uiTypes.filter((t) => !isEdit.value || !t.virtual), + ...uiTypes.filter((t) => geoDataToggleCondition(t) && (!isEdit.value || !t.virtual)), ...(!isEdit.value && meta?.value?.columns?.every((c) => !c.pk) ? [ { diff --git a/packages/nc-gui/composables/useMapViewDataStore.ts b/packages/nc-gui/composables/useMapViewDataStore.ts index 33db9ba331..167f859b1e 100644 --- a/packages/nc-gui/composables/useMapViewDataStore.ts +++ b/packages/nc-gui/composables/useMapViewDataStore.ts @@ -4,7 +4,7 @@ import type { ColumnType, MapType, TableType, ViewType } from 'nocodb-sdk' import { ref, useInjectionState, useMetas } from '#imports' import type { Row } from '~/lib' -export const geodataToggleState = reactive({ show: true }) +export const geodataToggleState = reactive({ show: false }) const formatData = (list: Row[]) => list.map((row) => ({