From 314b194891e470601c947eacae6280b99b229cf1 Mon Sep 17 00:00:00 2001 From: Cohee Date: Sat, 29 Jul 2023 21:24:29 +0300 Subject: [PATCH] Remove preset reloading when setting is NaN --- public/scripts/nai-settings.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/public/scripts/nai-settings.js b/public/scripts/nai-settings.js index 427c61563..0afe52b03 100644 --- a/public/scripts/nai-settings.js +++ b/public/scripts/nai-settings.js @@ -90,13 +90,6 @@ function loadNovelSettings(settings) { nai_settings.cfg_scale = settings.cfg_scale; nai_settings.streaming_novel = !!settings.streaming_novel; 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 = [