From 8eddff83cb1bde09db36ec3d286f68d746e297f8 Mon Sep 17 00:00:00 2001 From: G30 <50341825+silentoplayz@users.noreply.github.com> Date: Sun, 21 Dec 2025 04:59:21 -0500 Subject: [PATCH] fix(utils): add safety check for attributes.result in processDetails (#19923) --- src/lib/utils/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/utils/index.ts b/src/lib/utils/index.ts index 5b92da8b8..32c56f273 100644 --- a/src/lib/utils/index.ts +++ b/src/lib/utils/index.ts @@ -871,7 +871,9 @@ export const processDetails = (content) => { attributes[attributeMatch[1]] = attributeMatch[2]; } - content = content.replace(match, `"${attributes.result}"`); + if (attributes.result) { + content = content.replace(match, `"${attributes.result}"`); + } } }