Deep clone presets before export

This commit is contained in:
Cohee 2023-08-19 21:17:58 +03:00
parent 5cecc9fbff
commit 0d7c1992f3
1 changed files with 2 additions and 1 deletions

View File

@ -45,6 +45,7 @@ import {
} from "./secrets.js";
import {
deepClone,
delay,
download,
getFileText, getSortableDelay,
@ -2344,7 +2345,7 @@ async function onExportPresetClick() {
return;
}
const preset = openai_settings[openai_setting_names[oai_settings.preset_settings_openai]];
const preset = deepClone(openai_settings[openai_setting_names[oai_settings.preset_settings_openai]]);
delete preset.reverse_proxy;
delete preset.proxy_password;