From b750ce0112a657af36de84301cbc0f3299c573e3 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): select integration related changes --- packages/nc-gui/components/ai/Settings.vue | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/nc-gui/components/ai/Settings.vue b/packages/nc-gui/components/ai/Settings.vue index 20b3e650fe..a1c25b380c 100644 --- a/packages/nc-gui/components/ai/Settings.vue +++ b/packages/nc-gui/components/ai/Settings.vue @@ -67,18 +67,14 @@ const onIntegrationChange = async (newFkINtegrationId?: string) => { } onMounted(async () => { - if (isEditColumn.value) { - return - } - - if (!vFkIntegrationId.value) { + if (!vFkIntegrationId.value && !isEditColumn.value) { if (aiIntegrations.value.length > 0 && aiIntegrations.value[0].id) { vFkIntegrationId.value = aiIntegrations.value[0].id nextTick(() => { onIntegrationChange() }) } - } else { + } else if (vFkIntegrationId.value) { lastIntegrationId.value = vFkIntegrationId.value if (!vModel.value || !availableModels.value.length) {