From 6484e48964404625440b73847394115eb654f0c6 Mon Sep 17 00:00:00 2001 From: mic Date: Thu, 22 Jan 2026 22:37:34 +0100 Subject: [PATCH] correctly not setting the conn_type calue for new prompts. See #623 --- pages/_lib/connection-ui.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pages/_lib/connection-ui.js b/pages/_lib/connection-ui.js index 7e668e50..eb9f62de 100644 --- a/pages/_lib/connection-ui.js +++ b/pages/_lib/connection-ui.js @@ -31,7 +31,11 @@ import { sanitizeChatGPTWebCustomData } from '../../js/mzta-utils.js'; import { openAICompConfigs } from '../../js/api/openai_comp_configs.js'; -import { loadPrompt, savePrompt, clearPromptAPI } from '../../js/mzta-prompts.js'; +import { + loadPrompt, + savePrompt, + clearPromptAPI +} from '../../js/mzta-prompts.js'; export const varConnectionUI = { permission_all_urls: false @@ -1204,6 +1208,8 @@ function populateConnectionTypeOptions(selectId, no_chatgpt_web = false) { if (options.some(o => o.value === prevValue)) { conntype_select.value = prevValue; + } else if (no_chatgpt_web) { + conntype_select.value = ""; } }