fix: thread might not exist

This commit is contained in:
Pionxzh
2023-04-20 14:24:19 +08:00
parent 910d2fc052
commit d18bf3f062
+1 -1
View File
@@ -102,7 +102,7 @@ function main() {
const { conversationNodes } = processConversation(rawConversation, conversationChoices)
threadContents.forEach((thread, index) => {
const createTime = conversationNodes[index].message?.create_time
const createTime = conversationNodes[index]?.message?.create_time
if (!createTime) return
const date = new Date(createTime * 1000)