Cloned preset before using

1593951281bc2ccbab85b8e00d7223d4650d7580

bmen25124 <bmen25124@gmail.com>

1 files changed, +1 -1Showing whitespace changes
public/scripts/instruct-mode.js+1 -1
@@ -406,7 +406,7 @@ export function formatInstructModeSystemPrompt(systemPrompt, customInstruct = nu
406 return '';406 return '';
407 }407 }
408408
409 const instruct = customInstruct ?? power_user.instruct;409 const instruct = structuredClone(customInstruct ?? power_user.instruct);
410410
411 const separator = instruct.wrap ? '\n' : '';411 const separator = instruct.wrap ? '\n' : '';
412412