diff --git a/public/script.js b/public/script.js index bbf386f96..9ed57cb0f 100644 --- a/public/script.js +++ b/public/script.js @@ -3805,8 +3805,8 @@ async function Generate(type, { automatic_trigger, force_name2, quiet_prompt, qu cfgPrompt = getCfgPrompt(cfgGuidanceScale, isNegative); } - if (cfgPrompt && cfgPrompt?.value) { - if (cfgPrompt?.depth === 0) { + if (cfgPrompt && cfgPrompt.value) { + if (cfgPrompt.depth === 0) { finalMesSend[finalMesSend.length - 1].message += /\s/.test(finalMesSend[finalMesSend.length - 1].message.slice(-1)) ? cfgPrompt.value