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
+2
View File
@@ -871,9 +871,11 @@ export const processDetails = (content) => {
attributes[attributeMatch[1]] = attributeMatch[2]; attributes[attributeMatch[1]] = attributeMatch[2];
} }
if (attributes.result) {
content = content.replace(match, `"${attributes.result}"`); content = content.replace(match, `"${attributes.result}"`);
} }
} }
}
return content; return content;
}; };