fix(utils): add safety check for attributes.result in processDetails (#19923)

This commit is contained in:
G30 2025-12-21 04:59:21 -05:00 committed by GitHub
parent 28b2fcab0c
commit 8eddff83cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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}"`);
}
}
}