From c022858e5b667f121045b1b6d2873ddc40ac5381 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Sun, 16 Mar 2025 23:37:18 +0200 Subject: [PATCH] Fix structuredClone --- public/scripts/power-user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/scripts/power-user.js b/public/scripts/power-user.js index 00ce80e8d..c1cc8c0f8 100644 --- a/public/scripts/power-user.js +++ b/public/scripts/power-user.js @@ -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);