Remove preset reloading when setting is NaN

This commit is contained in:
Cohee 2023-07-29 21:24:29 +03:00
parent 0e7c10b26f
commit 314b194891
1 changed files with 0 additions and 7 deletions

View File

@ -90,13 +90,6 @@ function loadNovelSettings(settings) {
nai_settings.cfg_scale = settings.cfg_scale; nai_settings.cfg_scale = settings.cfg_scale;
nai_settings.streaming_novel = !!settings.streaming_novel; nai_settings.streaming_novel = !!settings.streaming_novel;
loadNovelSettingsUi(nai_settings); loadNovelSettingsUi(nai_settings);
// reload the preset to migrate any new settings
for (const key of Object.keys(nai_settings)) {
if (typeof nai_settings[key] === 'number' && Number.isNaN(nai_settings[key])) {
$("#settings_perset_novel").trigger("change");
}
}
} }
const phraseRepPenStrings = [ const phraseRepPenStrings = [