Skip to content

Commit 86bd8e6

Browse files
committed
fix: should not try subscribe on empty id
1 parent 50dec3a commit 86bd8e6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

apps/frontend/app/components/chat/ChatInterface.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ const { ignoreUpdates: ignorePathUpdate } = watchIgnorable(
111111
112112
// Subscribe to a counter to check for messages from other concurrent sessions
113113
watchImmediate(threadIdRef, (threadId) => {
114+
if (!threadId)
115+
return
116+
114117
console.log(`Subscribing to messages count of: ${threadId}`)
115118
const { unsubscribe } = convex.onUpdate(
116119
api.messages.countByThread,

0 commit comments

Comments
 (0)