mirror of
https://github.com/open-webui/open-webui.git
synced 2026-01-09 06:23:55 +08:00
fix(utils): add safety check for attributes.result in processDetails (#19923)
This commit is contained in:
parent
28b2fcab0c
commit
8eddff83cb
@ -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…
x
Reference in New Issue
Block a user