Browse Source

fix(nc-gui): rename variable name

pull/9997/head
Ramesh Mane 3 days ago
parent
commit
93c24eb919
  1. 14
      packages/nc-gui/components/smartsheet/column/EditOrAdd.vue

14
packages/nc-gui/components/smartsheet/column/EditOrAdd.vue

@ -183,20 +183,10 @@ const uiFilters = (t: UiTypesType) => {
const specificDBType = t.name === UITypes.SpecificDBType && isXcdbBase(meta.value?.source_id) const specificDBType = t.name === UITypes.SpecificDBType && isXcdbBase(meta.value?.source_id)
const showDeprecatedField = !t.deprecated || showDeprecated.value const showDeprecatedField = !t.deprecated || showDeprecated.value
const hideAiPromptOnEdit = [AIPrompt, AIButton].includes(t.name) const showAiFields = [AIPrompt, AIButton].includes(t.name) ? isFeatureEnabled(FEATURE_FLAG.AI_FEATURES) && !isEdit.value : true
? isFeatureEnabled(FEATURE_FLAG.AI_FEATURES) && !isEdit.value
: true
const isAllowToAddInFormView = isForm.value ? !formViewHiddenColTypes.includes(t.name) : true const isAllowToAddInFormView = isForm.value ? !formViewHiddenColTypes.includes(t.name) : true
return ( return systemFiledNotEdited && geoDataToggle && !specificDBType && showDeprecatedField && isAllowToAddInFormView && showAiFields
systemFiledNotEdited &&
geoDataToggle &&
!specificDBType &&
showDeprecatedField &&
isAllowToAddInFormView &&
hideAiPromptOnEdit &&
hideBetaAi
)
} }
const extraIcons = ref<Record<string, string>>({}) const extraIcons = ref<Record<string, string>>({})

Loading…
Cancel
Save