Skip to content

Commit

Permalink
fix: thread might not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
pionxzh committed Apr 20, 2023
1 parent 910d2fc commit d18bf3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/userscript/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d18bf3f

Please sign in to comment.