diff --git a/src/lib/utils/index.ts b/src/lib/utils/index.ts index 5b92da8b8e..32c56f2733 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}"`); + } } }