mirror of
https://github.com/open-webui/open-webui
synced 2025-02-06 13:10:16 +00:00
fix
This commit is contained in:
parent
8a3c9b9a3e
commit
90effa925e
@ -32,7 +32,7 @@
|
|||||||
const getContents = () => {
|
const getContents = () => {
|
||||||
contents = [];
|
contents = [];
|
||||||
messages.forEach((message) => {
|
messages.forEach((message) => {
|
||||||
if (message.content) {
|
if (message?.content) {
|
||||||
const codeBlockContents = message.content.match(/```[\s\S]*?```/g);
|
const codeBlockContents = message.content.match(/```[\s\S]*?```/g);
|
||||||
let codeBlocks = [];
|
let codeBlocks = [];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user