Fix structuredClone

This commit is contained in:
Cohee
2025-03-16 23:37:18 +02:00
parent 8dc66bd21b
commit c022858e5b

View File

@ -1992,8 +1992,8 @@ export function fuzzySearchGroups(searchValue, fuzzySearchCaches = null) {
*/
export function renderStoryString(params, { customStoryString = null, customInstructSettings = null } = {}) {
try {
const storyString = structuredClone(customStoryString ?? power_user.context.story_string);
const instructSettings = customInstructSettings ?? power_user.instruct;
const storyString = customStoryString ?? power_user.context.story_string;
const instructSettings = structuredClone(customInstructSettings ?? power_user.instruct);
// Validate and log possible warnings/errors
validateStoryString(storyString, params);