correctly not setting the conn_type calue for new prompts. See #623
This commit is contained in:
parent
39a5c3367c
commit
6484e48964
1 changed files with 7 additions and 1 deletions
|
|
@ -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 = "";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue