From 93c24eb9192c14ea3dca909b6d4c9b9e20d45ff8 Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Mon, 9 Dec 2024 08:25:42 +0000 Subject: [PATCH] fix(nc-gui): rename variable name --- .../components/smartsheet/column/EditOrAdd.vue | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/packages/nc-gui/components/smartsheet/column/EditOrAdd.vue b/packages/nc-gui/components/smartsheet/column/EditOrAdd.vue index d939bf09d5..491f329690 100644 --- a/packages/nc-gui/components/smartsheet/column/EditOrAdd.vue +++ b/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 showDeprecatedField = !t.deprecated || showDeprecated.value - const hideAiPromptOnEdit = [AIPrompt, AIButton].includes(t.name) - ? isFeatureEnabled(FEATURE_FLAG.AI_FEATURES) && !isEdit.value - : true + const showAiFields = [AIPrompt, AIButton].includes(t.name) ? isFeatureEnabled(FEATURE_FLAG.AI_FEATURES) && !isEdit.value : true const isAllowToAddInFormView = isForm.value ? !formViewHiddenColTypes.includes(t.name) : true - return ( - systemFiledNotEdited && - geoDataToggle && - !specificDBType && - showDeprecatedField && - isAllowToAddInFormView && - hideAiPromptOnEdit && - hideBetaAi - ) + return systemFiledNotEdited && geoDataToggle && !specificDBType && showDeprecatedField && isAllowToAddInFormView && showAiFields } const extraIcons = ref>({})