mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-28 05:27:35 +00:00
fix(utils): add safety check for attributes.result in processDetails (#19923)
This commit is contained in:
parent
28b2fcab0c
commit
8eddff83cb
1 changed files with 3 additions and 1 deletions
|
|
@ -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}"`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue