Timothy J. Baek 7 tháng trước cách đây
mục cha
commit
90effa925e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/lib/components/chat/Artifacts.svelte

+ 1 - 1
src/lib/components/chat/Artifacts.svelte

@@ -32,7 +32,7 @@
 	const getContents = () => {
 		contents = [];
 		messages.forEach((message) => {
-			if (message.content) {
+			if (message?.content) {
 				const codeBlockContents = message.content.match(/```[\s\S]*?```/g);
 				let codeBlocks = [];