diff --git a/packages/jupyter-ai/src/components/chat-messages.tsx b/packages/jupyter-ai/src/components/chat-messages.tsx index a0e6eb588..ca57c55fe 100644 --- a/packages/jupyter-ai/src/components/chat-messages.tsx +++ b/packages/jupyter-ai/src/components/chat-messages.tsx @@ -43,11 +43,11 @@ function sortMessages( */ const aOriginTimestamp = - "reply_to" in a && a.reply_to in timestampsById + 'reply_to' in a && a.reply_to in timestampsById ? timestampsById[a.reply_to] : a.time; const bOriginTimestamp = - "reply_to" in b && b.reply_to in timestampsById + 'reply_to' in b && b.reply_to in timestampsById ? timestampsById[b.reply_to] : b.time;