Deep clone presets before export
This commit is contained in:
parent
5cecc9fbff
commit
0d7c1992f3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue